HighDots Forums  

opening a new window only absolute links

alt.html alt.html


Discuss opening a new window only absolute links in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
steve
 
Posts: n/a

Default opening a new window only absolute links - 10-03-2004 , 10:45 AM






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.

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 ( absolute links ) or only the links that are in one
table.

Thanks



Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: opening a new window only absolute links - 10-03-2004 , 10:55 AM






steve wrote:
Quote:
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.
So be more persuasive?

Quote:
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
JavaScript. Loop through every anchor onload and dynamically set the target
based on the value of the href attribute (if one exists).

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #3  
Old   
Dave Patton
 
Posts: n/a

Default Re: opening a new window only absolute links - 10-03-2004 , 01:45 PM



"steve" <nospam (AT) nospam (DOT) non> wrote in news:cjp3b5$b4g$1 (AT) ctb-nnrp2 (DOT) saix.net:

Quote:
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.
Have you explained that not only is it bad for usability reasons,
but that no matter what method you use to 'force' this on users
that if the user wants, they can disable it?
Yes, not every user would know how, or have a browser that supports
such control, but maybe once the client knows that what they want
won't do what they want(some of the time), they will listen to reason.

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).

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/


Reply With Quote
  #4  
Old   
David Dorward
 
Posts: n/a

Default Re: opening a new window only absolute links - 10-03-2004 , 02:07 PM



Toby Inkster wrote:

Yes ... except you would use a Transitional DTD since the DOM 1
specification states that some features assume the use of a Transitional
Doctype and the target attribute doesn't appear in Strict.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #5  
Old   
steve
 
Posts: n/a

Default Re: opening a new window only absolute links - 10-03-2004 , 03:19 PM



Quote:
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).
Yes I really did not think of that
Thanks

How can I achieve something like that

for example

link55 open link55 in new window




Reply With Quote
  #6  
Old   
nice.guy.nige
 
Posts: n/a

Default Re: opening a new window only absolute links - 10-04-2004 , 04:07 AM



While the city slept, steve (nospam (AT) nospam (DOT) non) feverishly typed...

Quote:
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]"

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

--
Nigel Moss
http://www.nigenet.org.uk
Mail address not valid. nigel (AT) DOG (DOT) nigenet.org.uk, take the DOG. out!
In the land of the blind, the one-eyed man is very, very busy!




Reply With Quote
  #7  
Old   
jake
 
Posts: n/a

Default Re: opening a new window only absolute links - 10-04-2004 , 05:32 AM



In message <2sceo9F1je2rgU1 (AT) uni-berlin (DOT) de>, nice.guy.nige
<nigel_moss (AT) deadspam (DOT) com> writes
Quote:
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.

The important thing is not to open a new window without first informing
the user.

Quote:
Many nations are bringing in - or already have in place - legislation
regarding web accessibility.
True.

Quote:
Point out to your client that what he wants
will break web accessibility, and could potentially land him in court.

No, not really. There's no accessibility issue here.

Quote:
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

--
Jake


Reply With Quote
  #8  
Old   
Spartanicus
 
Posts: n/a

Default Re: opening a new window only absolute links - 10-04-2004 , 06:06 AM



jake <jake (AT) gododdin (DOT) demon.co.uk> wrote:

Quote:
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.
Of the big 4 only Mozilla and possibly Firefox allows this, and since
this setting is not in the GUI prefs most users would be unaware of this
feature.

Quote:
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.

--
Spartanicus


Reply With Quote
  #9  
Old   
jake
 
Posts: n/a

Default Re: opening a new window only absolute links - 10-04-2004 , 09:02 AM



In message
<6n72m0pab17dv3rc1e2fk08mv0lbrilldk (AT) news (DOT) spartanicus.utvinternet.ie>,
Spartanicus <me (AT) privacy (DOT) net> writes
Quote:
jake <jake (AT) gododdin (DOT) demon.co.uk> wrote:

[snip]

Quote:
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 important thing is not to open a new window without first informing
the user.

Quote:
The correct answer remains: stop wanting that.

The correct answer is to provide the facility if it's needed.

regards.

--
Jake


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.