![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I know that opening a new window (target="_blank") is a bed idea but I have explain that to the client and he still want the links that are link to other domain names to open in new windows. |
|
I know that I can use <base target="main"> but that open all the links in new window. So how can I open in new windows only the links that are link to external sites |
#3
| |||
| |||
|
|
Hi I know that opening a new window (target="_blank") is a bed idea but I have explain that to the client and he still want the links that are link to other domain names to open in new windows. |
#4
| |||
| |||
|
|
Something like this? http://examples.tobyinkster.co.uk/external-links |

#5
| |||
| |||
|
|
Some sites use a small visiual indicator next to offsite links, presumably because they are willing to believe that users are smart enough to decide for themselves if they want to open 'offsite links' in a new window(or, with better browsers, a new tab). |
#6
| |||
| |||
|
|
Hi I know that opening a new window (target="_blank") is a bed idea but I have explain that to the client and he still want the links that are link to other domain names to open in new windows. |
#7
| ||||
| ||||
|
|
While the city slept, steve (nospam (AT) nospam (DOT) non) feverishly typed... Hi I know that opening a new window (target="_blank") is a bed idea but I have explain that to the client and he still want the links that are link to other domain names to open in new windows. Web Accessibility Guidelines, Checkpoint 10.1: "Until user agents allow users to turn off spawned windows, do not cause pop-ups or other windows to appear and do not change the current window without informing the user. [Priority 2]" These days, UAs can turn off spawned windows. |
|
Many nations are bringing in - or already have in place - legislation regarding web accessibility. |
|
Point out to your client that what he wants will break web accessibility, and could potentially land him in court. |
|
The best way to stop users leaving your site is to provide a site that they want to come back to. For example, on a good site, I may follow a link to an external site, view that, then go back through the history to return to the original site, or I may open the external site in a new window from the context menu, so I can get back to the original site with a quick alt-tab! Hope that helps, Nige |
#8
| |||
| |||
|
|
Web Accessibility Guidelines, Checkpoint 10.1: "Until user agents allow users to turn off spawned windows, do not cause pop-ups or other windows to appear and do not change the current window without informing the user. [Priority 2]" These days, UAs can turn off spawned windows. |
|
The important thing is not to open a new window without first informing the user. |
#9
| |||
| |||
|
|
jake <jake (AT) gododdin (DOT) demon.co.uk> wrote: [snip] |
|
The important thing is not to open a new window without first informing the user. "Informing the user" forces knowledgable users to do something extra which shouldn't be necessary, and the average user doesn't know how to open such a link in the same window/tab. |
|
The correct answer remains: stop wanting that. The correct answer is to provide the facility if it's needed. |
![]() |
| Thread Tools | |
| Display Modes | |
| |