In the old days of webmasters, target attribute provided control of browsers’ behavior. Web sites were breaking natural flow of the user’s travel from site to site. Users couldn’t go back even if they wanted to and they had difficulties following relations between sites. But webmasters and site owners were afraid that users will forget about their web sites and it was better that the site resides somewhere in the background. The fear of the site owners was justified, as their sometimes pretty poor content couldn’t keep users focused and users often went away in search for relevant content.
Many internet-savvy people expected that the off-site link (link to some other web site) will open in new window. More than often too many windows covered their desktops, so internet-savvy people started using better browsers. Those had some advanced options and were able to give control over the browser back to users. In the mean time, the W3C, which already advised separation of structure, presentation and behavior in a web page, removed all traces of behavior layer from XHTML specs and forced webmasters to find other ways...
The Open in New Window link points to the same URL like the original, default link,
but opens the page in a new window. It is created with DOM method
document.createElement, which is well known in DOM experts’
circles. Example of using this method could be found in this page’s source. If one would be more interested in other DOM methods and examples,
she would read some (if not all) of the following articles:
- DOM scripting Health and Safety
- Enhanced Form Widgets
Photo Frame by Mirko Beović.