Click to See Complete Forum and Search --> : pop up link help


TheShibby
09-14-2003, 11:25 PM
Does anyone know the code so when you click a link a new window pops up?

Khalid Ali
09-14-2003, 11:43 PM
search the google for HTML tutorials....

its called an anchor tag that allows you to target documents.

A tutorial will explaing this.

Charles
09-15-2003, 05:56 AM
<a href="http://www.w3.org" onclick="window.open(this.href, 'child', 'height=400,width=300'); return false">W3C</a>

And see http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/window.html#1202731 for details.

requestcode
09-15-2003, 07:15 AM
If you don't want to use javascript you can also use the target property like this:
<a href="http://www.w3.org" target="_new">W3C</a>

or:

<a href="http://www.w3.org" target="_blank">W3C</a>

The drawback of course is that you don't have control over the window properties such as height and width.

pyro
09-15-2003, 07:22 AM
Originally posted by requestcode
The drawback of course is that you don't have control over the window properties such as height and width. And, that it won't validate in strict mode...

TheShibby
09-15-2003, 06:26 PM
thanks next time ill jus try to find a tutorial next time