Click to See Complete Forum and Search --> : Window.open()


April 29th, 2000, 02:03 PM
Hello,

How to open a new window using window.open() in the onclick event of a hyperlink. When i am using, it is changing the parent window's page and opening a new window. How to open a new window without changing the parent window's page. I have written as,

<a href"" onclick=window.open("cc.htm","location=no,menubar=no,toolbar=no")

bye,
anand

lone_wolf_1985
April 30th, 2000, 12:53 PM
Umm... I always thought this was a Java forum, but that's not Java, but anyways I think I can help.

Try adding a "return true;" statement to the tag, which would make the tag look like this:

<a href="" onclick="window.open("cc.htm", "location=no, menubar=no, toolbar=no"); return true;">