header
 
     
 
pixel
pixel pixel

Open a link in a new window

You can open a link in a new window using HTML. This is a little surer than javascript as it will work whether the browser has javascript installed or not. You implement it by adding the text target="_blank" to your anchor tag. For example:
<a href="http://www.tipsntutorials.com/" target="_blank">click here to visit Tips 'n' Tutorials in a new window</a>

Unhelpful Helpful Rating 4.2 (score out of 5, no. of ratings: 176)
Comments
Comment by Ernest on 2005-10-14
Thanks, it was very helpful

Comment by Jennifer on 2005-01-27
This was most helpful. Thank you!

Comment by corey on 2005-01-27
How would you make that window have no: address bar, buttons or search menu etc... IE I just want a plain window.

Comment by Jelly McJelly on 2005-02-15
THANKYOU so much for that :D

Comment by Name on 2005-04-06
Oh, and that's another thing, FAT platypus; LEARN TO SPELL!!!!!! Haven't you realised that there isn't a space when you write without? Wanker...

Comment by Millechen on 2005-06-12
Thank you so much! I've been having so many problems with getting that code to work, but this time it worked perfect!

Comment by 123timepass.dot.de on 2005-07-11
thanks... it just worked for me..

Comment by abhay on 2005-11-22
This was most helpful. Thank you!

Comment by pankaj on 2005-12-12
good tip

Comment by a1 gal on 2006-02-26
I forgot this code and it's ecactly what i'm looking for! Thanks!

Comment by Dave on 2006-10-26
Thanks for making this available, did exactly what i needed.

Comment by Mike on 2007-02-13
If you have dreamweaver you can just right click on the link and on the drop down menu go to > Target > _blank But sure this works even if it is much slower

Comment by Shahzad Ansari on 2007-06-02
I forgot this code and it\'s ecactly what i\'m looking for! Thank you very much

Comment by name on 2007-06-07
RealiZed. YOU have to learn how to spell. Why be rude, when YOU don\'t know how to do better?

Comment by Baugy81 on 2008-01-07
Thanks! Was a great help!

Comment by Death on 2008-02-12
It's not a valid way to open a link in a new page. The 'target' attribute was made for frames.

Post a Comment
Name
Email
(optional)
Comment
RatingUnhelpful Helpful
Security Image* (this is just to prevent spam submissions)
Security Image