Solved

XHTML1 Strict: "Anchor targets new window" alternative

Posted on 2003-11-19
3
291 Views
Last Modified: 2013-11-19
Hi there,

In using the XHTML1 Strict DTD, the anchor element's target attribute (<a target="_blank">) has been deprecated.
If we can't use Javascript, whats an alternative to popping up a new window?

Don't know if there is a solution using plain-old HTML or CSS, I know its possible with JScript, but what if the user-agent has JScript disabled?

Thanks
nD
0
Comment
Question by:nDorfin
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 250 total points
ID: 9777389
If you can't use JavaScript and you want to use Strict then there is NO WAY to force a new window on the user. New windows are not part of structure and therefore shouldn't be done with HTML (although obsolete markup can achieve the effect). New windows are certainly nothing to do with the way a page looks and are also impossible with CSS.

If you want to force new windows on users, use Transitional and the non-semantic target attribute, or use JavaScript (which is the correct tool for this sort of UI altering logic).

Better yet, let the *user* choose when they want to open a new window. <http://diveintoaccessibility.org/day_16_not_opening_new_windows.html>
0
 

Author Comment

by:nDorfin
ID: 9778302
Excellent site, thanks dorward - nice to see another perspective.
Sometimes I think new windows are needed, as u dont want to people to leave your site for another.  Sure, they can use the back-button, if they remember too, but your site is their focus.  Rather split the focus than change it.
0
 
LVL 17

Expert Comment

by:dorward
ID: 9778352
You might not want a visitor to leave, but if the visitor wants to go then they are not going to be happy when somebody tries to stop them. They have a back button, and bookmarks, and browser history record, and the option to open a link in a new window if they choose to.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
css, html 5 42
How to count in a table in php 22 35
HTML - Color not displaying correctly in EMAIL. 6 36
add image on html mail 6 16
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question