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 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



Close a window with a link

If you would like to close a new window with a link within a pop-window, this JavaScript code will enable you to do just that.

This JavaScript code will enable your visitors to close a window simply by clicking on a link. This is a great way to enable your visitors to close a window with a link within a tips, image slideshow, instructions window 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.

Example:

Close window

Place this code within your HTML code where you would like the button to appear:

<a href="javascript: self.close()">Close Window</a>






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