Guide to creating a web site, web design, web development, internet marketing, promotion, html tips and tricks, javascript and more.

Your Guide to Professional
Web Site Design and Development

HTML Tips
HTML Codes
Web Development
Web Design Tips
JavaScript Codes
216 Web Safe Colors
CSS Tutorial
JavaScript Tutorial
ASCII Character Codes

Offering Free Javascript Tips, Snippets and Codes

Open Directory Projectfree ebooksfree articles

| Web Site Development | HTML Codes | HTML Tips | Web Design TipsJavascript Snippets | 216 Safe Colors | Symbols | CSS Tutorial | JavaScript Tutorial |

webmaster resources
website design



Open a window on page load

If you're looking for a JavaScript code that will enable you to open a window on page load, this JavaScript code may be your answer.

This JavaScript code provides a great way for you to open an additional window when your web page loads. This is a great way to provide your visitors with special information, such as a sale, instructions, or whatever you'd like.

In addition to using this code within your web pages, you can also use it within your HTML ebooks, as long as your software supports JavaScript.

This example was displayed when this page was loaded. It creates a pop up window that may be customized to any size you'd like.

Place the following code under the <BODY> tag within your HTML:

<script language="JavaScript">
<!--Script courtesy of http://www.web-source.net - Your Guide to Professional Web Site Design and Development
window.open('http://www.yourdomain.com','windowname','
height='320,width=320,scrollbars,resizable');
// -->
</script>

Edit the text indicated in red to suit your needs.






Submit your JavaScript code snippets. We'll credit you and give you a link to your website.