PDA

View Full Version : Should Links Open In New Window



mattandmandie
September 21st, 2006, 05:25 AM
Should I set my links to open in a new window? I know that you want to keep your visitors at your site for as long as possible, but it seems to me that with all the pop up blockers, you could lose sales. Any thoughts on this?

Thanks

Matt and Mandie

jrlane7
September 21st, 2006, 11:16 AM
Pop-up blockers block new windows that are trying to open using JavaScript. You do not have to use JavaScript to open a new window, this can be done with basic html just add

target="_blank"

to the hyperlink tag

To futher explain, if you were going to add a link from your website to mine it would look like this

<a href="http://www.cbdelivered.com" target="_blank">CB Delivered</a>

That would open a new window, and not be blocked.

jamiejelly
September 21st, 2006, 11:19 AM
What doctype do you use in your documents? I believe


target="_blank"


is depricated in HTML 4.01 Strict. Of course this depends on how much you want to stick to standards. It isn't that important in the grand scheme of things.

However, from a practicality point of view, IE7 is on the way, FireFox and Opera already provide tabbed browsing so there is no need to open in a new window. People will want pages opening in new tabs. There is a setting in FF to set all external links to open in a new tab which is pretty nifty.

I say, don't make pages open in a new window.

Biff_Tiberius_Farnsworth
September 21st, 2006, 11:25 AM
I am a proponent of 'opening in a new window'. I have tested this but not in over a year.

~B

DataFeedFile.com
September 23rd, 2006, 11:52 AM
instead of target="_blank"

you can also do:

target="new"

or

target="_new"

Miles Baker
September 23rd, 2006, 12:19 PM
I open external links in new windows. I use a javascript to do it, which isn't blocked by popup blockers, and if someone had javascript turned off it would just open it in the same window. I try to adhere to xhtml strict.

mattandmandie
September 23rd, 2006, 10:38 PM
Where can I get a java script for this?

Thanks

Matt and Mandie

basnl
September 24th, 2006, 01:32 PM
Where can I get a java script for this?

Thanks

Matt and Mandie
You can find a complete article about this (including the javascript code) @ http://www.sitepoint.com/article/standards-compliant-world

alien23
February 5th, 2007, 10:27 AM
You can find a complete article about this (including the javascript code) @ http://www.sitepoint.com/article/standards-compliant-world

Nice article dude....explained things beautifully and in the simplest form

alien23
February 5th, 2007, 10:28 AM
Should I set my links to open in a new window? I know that you want to keep your visitors at your site for as long as possible, but it seems to me that with all the pop up blockers, you could lose sales. Any thoughts on this?

Thanks

Matt and Mandie

target="new window" in your html tag for hyper refernce tag and it will do the trick for you