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 Tips | Javascript Snippets | 216 Safe Colors | Symbols | CSS Tutorial | JavaScript Tutorial |

webmaster resources
website design

Open a New Window With a Link

If you would like to open a new window with a link within your web page, this JavaScript code may be what you're looking for.

You can open a new customized window within your web page that is opened via a standard HTML link like this:

Open Window
Click the above link to open a new window

This 'open a window with a link' code has a variety of uses, such as providing your visitors with additional information in regard to a specific subject, displaying an image slideshow, tips or whatever you'd like.

As this pop up window JavaScript code is lauched via a link and not on page load, it will be much more accepted by your visitors.

Place the following code between your HEAD tags.
<Script Language="JavaScript">
<!-- Script courtesy of http://www.web-source.net - Your Guide to Professional Web Site Design and Development
function load() {
var load = window.open('http://www.domain.com','','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
}
// -->
</Script>

Carefully edit the text indicated in red to suit your needs.


Create the link to open your new window like this:
<a href="javascript:load()">Open Window</a>




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