Opening Popup Windows With No Extra Markup
By Thierry Kiblentz2001-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
for example), to warn the user about the particular behavior attached to the links.
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
