JavaScript target demo

This is a demo of the script explained in Opening new windows with JavaScript, version 1.2. Please read that article for usage instructions.

A live test link to a pdf file, using class. This does not open in a new window.

A live test link to The W3C, using rel. This will open in a new window when JavaScript is available.