iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
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

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-28-2004, 12:10 AM
WebProWorld New Member
 
Join Date: Apr 2004
Location: Thailand
Posts: 22
simplythai RepRank 0
Default Help Needed Please

How do I make links or pages open in a New Window?

What code do I use?

Many thanks

Archaraporn

www.simply-thai.com
Reply With Quote
  #2 (permalink)  
Old 04-28-2004, 12:45 AM
vwebworld's Avatar
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Fairhaven, MA
Posts: 464
vwebworld RepRank 1
Default

The key is target="_blank"

~Roland
Reply With Quote
  #3 (permalink)  
Old 04-28-2004, 01:37 PM
WebProWorld New Member
 
Join Date: Apr 2004
Location: Thailand
Posts: 22
simplythai RepRank 0
Default

Thanksx very much for the code it works great!!

Archaraporn
Reply With Quote
  #4 (permalink)  
Old 04-28-2004, 05:36 PM
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: Western Australia
Posts: 1,336
matauri RepRank 0
Default

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!
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:31 AM.



Search Engine Optimization by vBSEO 3.3.0