pop up link help

admin

Administrator
Staff member
Does anyone know the code so when you click a link a new window pops up?<!--content-->search the google for HTML tutorials....<br />
<br />
its called an anchor tag that allows you to target documents.<br />
<br />
A tutorial will explaing this.<!--content--><a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.w3.org" onclick="window.open(this.href,'child', 'height=400,width=300'); return false">W3C</a><br />
<br />
And see <!-- m --><a class="postlink" href="http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/window.html#1202731">http://devedge.netscape.com/library/man ... ml#1202731</a><!-- m --> for details.<!--content-->If you don't want to use javascript you can also use the target property like this:<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.w3.org" target="_new">W3C</a><br />
<br />
or:<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.w3.org" target="_blank">W3C</a><br />
<br />
The drawback of course is that you don't have control over the window properties such as height and width.<!--content-->Originally posted by requestcode <br />
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...<!--content-->thanks next time ill jus try to find a tutorial next time<!--content-->
 
Back
Top