SQL PHP HTML ASP JavaScript articles and free scripts to download
HTML

How to open pages in new window

We move from one page to other page of a web site by using hyper links or simply links. These links on clicking opens the new page in same window. Links can have absolute URL or relative URL or the address of the page we want to move. To get the full details on different types of links visit hyper link page.

While designing hyper links we can create links to open the new page in a new window. This way we can keep the existing window open with out disturbing the current page. In your website you may not like your visitors to click any external link and leave your site. So you can modify the link and tell the browser to open the external site in a new window. Here is a simple link

<a href=http://www.newsite.com>new site</a>

To the above query we will add a new component saying target=new or target = blank. Like this

<a href=http://www.newsite.com target='_new'>new site</a>

Or

<a href=http://www.newsite.com target='_blank'>new site</a>

Here are two links, one will open the html tutorial list in same page, and other will open the same page by opening a new window.

Html list ( same window )  |  Html list ( in a new window )

Number of User Comments : 1


Google+
kol23-01-2012
its really good
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked



Join Our Email List
Email:  
For Email Newsletters you can trust
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2014 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer