View Full Version : A Pop Up Window Code

05-29-2004, 07:17 PM
Hey, I want a pop up window code which opens all the links in the same page.


05-29-2004, 10:52 PM
Hello Miss -

I believe you could have found the answer easier by searching a search engine, or these forums. But here you go:

<a href="http://www.codingforums.com/" target="newWindow" onclick="window.open(this.href, this.target, 'width=345,height=320'); return false;">Coding Forums</a>

If you use the newWindow target name on all links, the page will open in a previously opened popup window, if there is any.

- Rex

05-31-2004, 08:07 PM
I have searched and searched and searched but I didn't find what I wanted!

Anyways, Thanks. But I want scrollbars in the pop up window, How?

Thanks again. :)

06-01-2004, 02:58 PM
Have a look at this thread (http://www.codingforums.com/showthread.php?t=39572)