how to make the word example "Hello", as a link and when click it, it will popup a new windows?
Printable View
how to make the word example "Hello", as a link and when click it, it will popup a new windows?
Hi,
add a tag os some kind, a div, span, bold, whatever, and add an onClick event and the following javascript code.
if you watn to view variables in that windows such as the word helloo.Code:WindowName = Window.Open ("", "Winname", "height=,width=,resize=,scrollbar=");
if you want to close the windowCode:WindowName.document.write("string" or variable here)
WindowName.document.close()
you can set timeouts for this function as well so that this windows will close.Code:WindowName.close()
closes the window after 3 seconds.Code:SetTimeout("WindowName.close()", 3000)
hope this helps
Kai :wave:
thank!...is it possible to pass value over to the new window(like picture or text) where js click the link...........some thing like search from database and load the data in the text field of the new windows....
Hi,
you can pass anything you want over, just use the details I hgave to you adn play around.
hope this helps
Kai :wave:
ok.thank you!!