on 03-15-2011 8:39 AM
Hi,
I am new to BSP. I have to Requirement to open a new window using URL when we clicked on Hyper link. Tell me the way to achieve this using java script.
Regards,
Vidyasagar
the <htmlb:link> tag has an attribute "onClientClick" - here you can handle Javascript, like:
<htmlb:link id="mylink1" onClientClick = "window.open ('http://www.google.com','mywindow');">Link that opens a window</htmlb:link>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sagar,
It's same as Rosch's example.
<htmlb:link id="mylink1" onClientClick = "window.open ('http://w w w.google.com','mywindow');">1st Link that opens a window</htmlb:link>
<htmlb:link id="mylink2" onClientClick = "window.open ('h t t p://w w w.yahoo.com','mywindow');">2nd Link that opens a window</htmlb:link>
<htmlb:link id="mylink3" onClientClick = "window.open ('h t t p://w w w.rediff.com','mywindow');">3rd Link that opens a window</htmlb:link>
<htmlb:link id="mylink4" onClientClick = "window.open ('h t t p://w w w.sap.com','mywindow');">4th Link that opens a window</htmlb:link>
<htmlb:link id="mylink5" onClientClick = "window.open ('h t t p://w w w.saptechnical.com','mywindow');">5th Link that opens a window</htmlb:link>
Regards,
Ravi
P.S. I used extra spaces in the URLs, please ignore those extra spaces.
Edited by: Ravi A on Mar 16, 2011 2:58 PM
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.