Previous Example-|-Next Example-|-Return to Chapter Listing

Example 14.5:
The Problem with Links


This time we're using links to open the window. This link doesn't refer to a document, except in the onclick instruction...
Open Secondary Window

...this one does, though:
Open Secondary Window


This is the script we used. In the HEAD... <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- function WinOpen() { open("window.htm","Window1","location,resize,height=250,width=450,toolbar"); } //--> </SCRIPT> Then these links... <A HREF="" onclick="WinOpen()">Open Secondary Window</A><BR> <A HREF="window.htm" onclick="WinOpen()">Open Secondary Window</A>
Previous Example-|-Next Example-|-Return to Chapter Listing