View Full Version : javascript:newwindow( - not working


Incendio
06-04-2005, 11:28 AM
Hi!

I'm trying to use this code.

<A HREF="javascript:newwindow()" ><IMG SRC="IMG URL HERE" border="0"></A>

I get the image, but when I click on it, no new window, and at the bottom of my browser, it says "Error on Page"

anybody knows why? The script looks all OK to me ...

Edit: Also, this doesn't work either.


<A HREF="http://myurlhere.com" onClick="newwindow();return false">onClick Sample</A> <br><br>

When I click on it, I don't get a new wondow, but it opens in the same window.

kittycat
06-04-2005, 02:30 PM
What's the code you have for the newwindow() script part?

pretender
06-04-2005, 03:31 PM
Try this
<a href="your_page.htm" onclick="window.open('your_page.htm') ; return false"> name of link</a>

iTom
06-04-2005, 08:48 PM
or this html alternative...

<a href="whateveryourpageis.html" target="_blank">Your Text</a>