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

Example 15.6:
Configuring the Window with JavaScript 1.2


This time we used a few JavaScript 1.2 features to create a secondary window. We've set the window position, defined the outer dimensions of the window, and made it an always-on-top (alwaysRaised) window.



This is the script we used. In the HEAD... <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- function WinOpen() { open("window3.htm","Window1","location,resize,screenY=200,screenX=100,alwaysRaised=yes,outerHeight=450,outerWidth=450,toolbar, scrollbars"); } //--> </SCRIPT> Then this button... <form> <input type="button" name="WindowButton" value="Secondary Window--Click on me" onclick="WinOpen()"> </form>
Previous Example-|-Next Example-|-Return to Chapter Listing