View Full Version : Open page in new window ( complete muppet)
wentwooddownhill
05-10-2007, 03:32 PM
Has anyone got the code to open a page in a new window. There are planty of codes out there but i dont know how to fit them into my html.
<img border="0" src="img/mainareawh1.gif" width="320" height="183" >
^^ thats what the code looks like in the <body> section. I want to huperlink off the image to a page in a new window. Any help appreciated.
jscheuer1
05-10-2007, 04:07 PM
Since you are asking in the HTML section, I will give you the HTML answer:
<a href="whatever.htm" target="_blank">Link Text or Image Tag</a>
Unfortunately, even something as innocent as this can be blocked by pop up blockers, and you have even less control over the characteristics of the new window than with javascript.
With javascript, you can tailor many things about your new window. However, this is no guarantee against being blocked or having your settings overridden.
A script like the one I believe I mentioned to you before is superior because it can only be blocked by disabling javascript entirely - something few people do. It will degrade well if blocked and has other advantages.
wentwooddownhill
05-10-2007, 04:12 PM
cheers for that, it works finally which is good
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.