new window popup

liunx

Guest
im using Frontpage XP and i wanna know how to link an image so that when a person clicks on the link it will open up the image in a new window so they don't have to keep clicking the back button they just have to click the "X"<br />
<br />
:confused:<!--content-->add an onclick event in the image tag,<br />
in the onclick event put this code<br />
onclick="javascript:window.open('imageUrl.gif','newWin')"<!--content-->Or just use plain html...<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"here.html" target="_blank"><img src="image.gif" /></a><!--content-->Originally posted by khalidali63 <br />
<br />
onclick="javascript:window.open('imageUrl.gif','newWin')" <br />
<br />
1) That JavaScript is incorrect though some browsers recover from it nonethless. <br />
2) That will fail for the one in ten users that do not use JavaScript and for the numberless users that have pop-ups disabled.<br />
<br />
Use instead:<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.w3.org/" onclick="window.open(this.href); return false"><img alt="the W3C" src="http://www.w3.org/Icons/w3c_home"></a><br />
<br />
Or use the HTML 3.2 version that employs the 'target' attribute.<!--content-->
 
Back
Top