Article Friendly article publishing script homepage.
Translate Page To German Tranlate Page To Spanish Translate Page To French Translate Page To Italian Translate Page To Japanese Translate Page To Korean Translate Page To Portuguese Translate Page To Chinese
  Number Times Read : 115      
Stats
Total Articles: 434476
Total Authors: 113366
Total Downloads: 10909065


Newest Member
Anna Tracy

 
You are at : Home | Coding Sites


   

New Window or Old Window - Which Should be Used for an External Link?



[Valid RSS feed]  Category Rss Feed - http://yourarticlesource.com/rss.php?rss=55
By : David Broadhead, Ph.D.    99 or more times read
Submitted 2009-12-10 19:11:25
There has long been a controversy between those who think that all links leading offsite should open in a new window, and those who think they should open in the same window. I maintain that this is not a real controversy.

The "controversy":

Most proponents of using a new window are website owners, while those favoring use of the same window are web-standards supporters, often the web designers themselves.

Website owners are fearful of losing their viewers to another site. If clicking a link causes a new website to appear in the same window, then the viewer must take positive action to return to the original site. Even though there is no evidence that I know of to support viewers not coming back, owners are reluctant to take a chance on losing possible sales.

The reason for favoring the same window is that strict adherence to web standards requires not using the target attribute of the link to open a new window, as this attribute has been deprecated.

In any case, it is easy enough for the viewer to come back to the original website. He can right-click the link and select "Open in a New Window", thereby saving the old window to return to later. Or he can just use the same window, but return to the originating website by using his BACK button.

Why is this "controversy" spurious?

To the best of my understanding, the reason for the W3C ban on the target attribute is that HTML - the language they are being "strict" about - is supposed to contain only information about WHAT is to be shown in the window of the browser. It is not supposed to concern itself with HOW or WHERE it is shown.

HOW the stuff on a web page is shown is governed by CSS. Any dynamic interactions between the browser and the viewer are the province of the DOM. So the consequences of the viewer clicking a link are supposed to be controlled by scripting.

This is why there should be no controversy. If the site owner wants offsite links to open in a new window, then the web designer can do so by using scripting. This will not violate the "strictness" of the W3C, and the webpage will validate. See the paragraph below for an easy way of accomplishing this.
Author Resource:- Visit the author's website, Professor's Coding Corner for useful code snippets and tutorials on various facets concerning web programming. In particular, you will find some simple open new window code that will satisty strict web standards.
Article From Your Best Information Source

Related Articles

HTML Ready Article. Click on the "Copy" button to copy into your clipboard.




Firefox users please select/copy/paste as usual
Rate This Article
Vote to see the results!

Do you like this article?
  • Yes.
  • Not Sure.
  • No.
New Members
select
Sign up
select
learn more
Affiliate Sign in
Affiliate Sign In
 
Nav Menu
Home
Login
Submit Articles
Submission Guidelines
Top Articles
Link Directory
About Us
Contact Us
Privacy Policy
RSS Feeds

Actions
Print This Article
Add To Favorites

 
Sponsors