The wrong way to use Nifty Javascript Features (in this case, a link that pops up in a new window):

<P><A HREF="javascript:window.open('javascripton.html');">Test Link</A></P>

Test Link

The problem? Users of non-Javascript browsers (or browsers with Javascript turned off) get an error message if they try to go to the link.


The solution: Attach the Fancy Javascript Action to the OnClick event for the link; if the user has Javascript, the action works. If not, they get to the link's destination anyhow.

The right way to get the same effect:

<P><A HREF="javascriptoff.html" Name="zorm" OnClick="window.open('javascripton.html'); return false;">Test Link</A></P>

Test Link


And the right way again, but with the popup a funny size:
Test Link