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 HTML Tips, Tags and Codes

Open Directory Projectfree ebooksfree articles
web site design development internet marketing and promotion tutorials

| 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 new window on page unload

If you're looking for a way to open a new window when you leave a web page, this code may be what you're looking for.

This HTML code will open the web page you specify as soon as you leave the original web page.

This provides a great way to gain new subscribers to your publication, introduce a product or whatever you'd like.

Opening a new window on page unload, or in other words, when your visitor is leaving your page is also a great way to make one last try to make a sale. You're visitor is leaving your site anyway, so this is your last chance to sell them. Make it count.

If you don't have a special offer of your own to introduce, use the window to open an affiliate site that you may be promoting. This provides a great way to bring the affiliate site to their attention and even make a sale.

Place the following code, indicated in bold, within your web page's BODY tag:

<body onUnload=window.open('http://www.domain.com'); self.blur();>

Change the web address to the page you would like to open.




Tip provided by:

http://bnsoft.net





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