Dareus Posted April 30, 2009 Share Posted April 30, 2009 I have a gallery, and I want all the images to open up in a new window, is this possible?THanks Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted April 30, 2009 Share Posted April 30, 2009 <a href="trees.jpeg" target="_blank"><img src="trees.jpeg" alt="This is a picture of coniferous trees"></a> Link to comment Share on other sites More sharing options...
roundcorners Posted April 30, 2009 Share Posted April 30, 2009 target="_blank" is deprecated in html 4.01 and xhtml. You should use JavaScript to do it.http://www.w3schools.com/HTMLDOM/met_win_open.asp Link to comment Share on other sites More sharing options...
Synook Posted April 30, 2009 Share Posted April 30, 2009 You should actually allow the user to decide whether to open a link in a new window or not. That's why the _blank attribute is deprecated 6.4 Anchors and targetsCheckpoints in this section:10.1 Until user agents allow users to turn off spawned windows, do not cause pop-ups or other windows to appear and do not change the current window without informing the user. [Priority 2]So basically until user agents can stop a new window from being opened, don't do it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.