![]() |
How do I get a link to open in a new window?
I'm trying to get a link to open in a new window, but so far the best I could do is get it to open in a new tab by setting target="_blank" in the <a> tag. How can I get a link to open in a new browser window and also specify the length and width of the new window?
Thanks in advance for any help. |
take a look at this.
Pretty sure you have to use javascript to make it open in a new window and not a new tab http://www.htmlforums.com/client-sid...ab-137214.html Cheers |
Even with JavaScript you can't guarantee where it will open. Also the size and location options you can specify for JavaScript are just suggestions that the browser can ignore.
The only way to be certain that a page will open in a new window is when you are the one opening it - you right click on the link and select "new Window". |
you can use JavaScript to open a new window :)
|
Quote:
|
Quote:
In fact, target="_blank" was removed from the HTML 4 specification because the tenor was that people shouldn’t be forced a new window/tab but should be able to decide for themselves how they would open links. And I do know people who actually do this (you can also Shift-click a link to open a new window or Ctrl/Cmd-click to open a new tab). |
Quote:
|
Thing is that most links don’t say that they are opening in a new window. Take Wikipedia for example. External links have an icon but it only says that this link will lead away from Wikipedia, it doesn’t say it opens in a new window. And (luckily, in my opinion) it’s up to the user to decide. I wouldn’t want every external link to open in a new window/tab (but this time I can only speak for myself either).
I’m not saying that this couldn’t be useful at times but it’s not the norm for the average website. |
Quote:
|
| All times are GMT +1. The time now is 10:25 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.