PDA

View Full Version : open links in another window


whit3lotus
07-21-2004, 09:57 PM
hi how do you have the link in your guestbook open in another window?

Andreas
07-22-2004, 06:03 AM
To open a new browser window you add the target="_blank" attribute to your link tag, like this:

<a href="http://www.ultraguest.com/?id=1041779607" target="_blank">My Guestbook</a>

You can also open the new window using JavaScript which will give you more options on the appearance of the new window. Please check out this tutorial by John Pollock: http://www.pageresource.com/jscript/jwinopen.htm

whit3lotus
07-22-2004, 01:51 PM
thank you for your response its really helpful

Xavier
07-24-2004, 02:50 PM
Had the same question and it worked like a breeze! Thank you Andreas :)

Andreas
07-25-2004, 04:32 PM
I'm happy to hear that it works! :)

parrotheadlasvegas
01-19-2005, 04:09 AM
AWESOME!!! I went to school for over a year to get my A+, Network+, Server+, MCSE (2000 & upgrade to 2003), and CCNA, but I didn't learn much of anything about HTML coding. Since I decided to put up my own blog and add a chat box and guestbook to it, I've learned quite a bit! I want to learn more! Thanks for this little trick! I really like the way it keeps the original blog browser window intact.