| Automatically opening a window |
When your readers enter a page you can automatically open a new, often smaller window displaying another webpage. This trick is often used to bring up an advert console or control panel. You can specifiy the size and position of the window and turn off some or all the normal features of a graphical browser: scrollbars, toolbar, location bar, directory buttons, status bar and menu bar. The width and height are specified in pixels and the position is specified in pixels from the top-left of the screen. See webreference.com for more info on window properties. Place the code in between the <HEAD></HEAD> tags of your document.
<SCRIPT LANGUAGE="JavaScript"> <!--//hide script from old browsers window.open("newpage.htm", "new_win", "resizable=yes, scrollbars=no, toolbar=no, location=no, directories=no, status=no, menubar=no, width=520, height=200, top=5, left=5") //end hiding contents --> </SCRIPT>
|
| Return to Listing |