Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

Opening Popup Windows With No Extra Markup

By Thierry Kiblentz
2001-08-31


Standards-Compliant Popups

Newer - better - methods rely on scripts that parse the document and apply the behavior to the anchors accordingly. These solutions use attributes of the A element (target, class or rel) as a "hook" (a marker).

Most of these methods style the links too (using some icons like this one Icon for popup Windows for example), to warn the user about the particular behavior attached to the links.

Important When a class is used, it is important that the author makes sure the links are not styled in JS-challenged browsers or if Javascript is disabled, otherwise it could be confusing for the user.

The 2 scripts below go one step further, setting the markup free of anchor's attributes.



Tutorial Pages:
» Opening Popup Windows with no extra markup
» Doing the Windows
» Standards-Compliant Popups
» Popups for External Links
» Custom Popups for specific links


Copyright TJKDesign


 | Bookmark
Related Tutorials:
» JavaScript Debugging Techniques with Firebug
» Striped Tables Using JavaScript
» Opening PDFs in a New Window with JavaScript
» Essential Javascript -- A Javascript Tutorial
» Submit Forms Conditionally using JavaScript
» How to Setup a Randomising Function

Ask A Question
characters left.