webmaster resources tips and articles
webmaster information

Path = Home : Javascript Tips : Open A Window


Open A Window on Page Load



Web Source Web Design Tips
by Shelley Lowery

The code below will open a new window when a web page loads. This window may be customized to any size you'd like. Place this code under the <BODY> tag within your HTML.

<script language="JavaScript">
<!--hide from old browsers
window.open('http://www.yourdomain.com','windowname',' height=320,width=320,scrollbars,resizable');
// -->
</script>

This window will have scrollbars and will be resizable. The height and width are set to 320, but may be changed to whatever you'd like. If you'd rather not have the scrollbars, you can remove the words "scrollbars and resizable."


Tip provided by: Web Source: Your Guide to Professional Web Design and Development. http://www.web-source.net

 

© janim.net 2000 - 2007 All rights reserved