|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
How do I make links or pages open in a New Window?
What code do I use? Many thanks Archaraporn www.simply-thai.com |
|
|||
|
target="_blank" is probably one of the most talked about attributes that the W3C is deprecating (in ohter words, you'll run into problems validating your page)
Even though by accessibility standards its frowned up, with the advent of link farms & reciprocal linking everwhere, many still would prefer to hold the visitor at their site by producing the 2nd window (a topic done to death in the Acessibility forum). If you do a search for target="_blank" you will find many forums discussing it. SitePoint have one suggestion that I have seen many use, though I have never tried this one with javascipt turned off, so I dont know if it still works. (many businesses have javascipt turned off for security reasons) The code below I have tried in one browser with javascript turned off (think it was Opera), and it worked. < a class="classname" href="#" onClick="window.open('http://wherever/com','','toolbar=yes,location=yes,scrolling=yes,st atus=yes, scrollbars=yes,resizable=yes,');return false" title="wherever it points"> Name of Site</a > With the attributes adjusted you can determined what the new window will do (for an image or plain text you might not want all the window features) But if your not fussed about validating, the target="_blank" is the easiest way.
__________________
Web Development Community ::: Forum ::: Library It' time for Progressive Web & IT Development! |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |