Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Gerard Copinga
Hello, besides the warning that the link will open in a new window, also make sure that the pop-up will work if JavaScript is disabled or not supported by assistive technologies. The way to do that is: a href=help.htm target=_blank onClick=javascript:openNewWindow(this.href); return false;

Re: Betr.: [WSG] Window Pop-ups (I have RMIT TestLab)

2005-04-26 Thread Malcolm Raymond
I have left RMIT TestLab, and your email has been forwarded on to Steven Turvey ([EMAIL PROTECTED]). If you need to contact RMIT TestLab in the future, please email Steve above or alternatively ring him on (03) 9925 6018. ** The discussion

Re: Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Kornel Lesinski
On Tue, 26 Apr 2005 08:44:24 +0100, Gerard Copinga [EMAIL PROTECTED] wrote: a href=help.htm target=_blank onClick=javascript:openNewWindow(this.href); return false; title=opens in new windowHelp/a Why do you put *useless* javascript: *label* inside onclick handler? -- regards, Kornel

Re: Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Prabhath Sirisena
You might find this useful: http://www.accessify.com/tutorials/the-perfect-pop-up.asp Prabhath http://nidahas.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints

Re: Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Kornel Lesinski
On Tue, 26 Apr 2005 12:04:39 +0100, Prabhath Sirisena [EMAIL PROTECTED] wrote: You might find this useful: http://www.accessify.com/tutorials/the-perfect-pop-up.asp This popup is imperfect. In examples there is always return false;. It should be return !window.open(..); It uses inline JavaScript -

Re: Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Jeremy Keith
Kornel Lesi?ski wrote: It uses inline JavaScript - event handlers should be assigned via DOM. As an example, you could use a class to indicate which links should open in a new window: a href=http://www.example.com/; class=popupvisit the site/a Then in an external JavaScript file, you could have

RE: Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Patrick Lauke
Jeremy Keith lnks[i].onkeypress = lnks[i].onclick; I'd advise against assigning an onkeypress. In some browsers (Moz), even a TAB is (rightly) seen as a keypress. An onkeypress on a link makes it effectively impossible to tab past the link without triggering the behaviour. All major current

Re: Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Kornel Lesinski
On Tue, 26 Apr 2005 13:16:12 +0100, Jeremy Keith [EMAIL PROTECTED] wrote: 2) If the link has a class of popup: 1) add an onlick behaviour 2) cancel the default action 3) make onkeypress do the same thing. No, don't use onkeypress. lnks[i].onclick =

Re: Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Thierry Koblentz
Gerard Copinga wrote: Hello, a href=help.htm target=_blank onClick=javascript:openNewWindow(this.href); return false; title=opens in new windowHelp/a As a side note: using _blank as the value of the target attribute is not a good idea unless the designer wants a *new* window to open each time

Re: Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Kornel Lesinski
On Tue, 26 Apr 2005 15:24:28 +0100, Thierry Koblentz [EMAIL PROTECTED] wrote: a href=help.htm target=_blank onClick=javascript:openNewWindow(this.href); return false; title=opens in new windowHelp/a As a side note: using _blank as the value of the target attribute is not a good idea unless

RE: Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Patrick Lauke
Kornel Lesinski And what about what _user_ wants? For me there is nothing more annoying that page with links to screenshots or faq entries that all stubbornly open in the same window and don't let me see more than one of them at once. But for every user that thinks like you

Re: Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Thierry Koblentz
Kornel Lesinski wrote: And what about what _user_ wants? For me there is nothing more annoying that page with links to screenshots or faq entries that all stubbornly open in the same window and don't let me see more than one of them at once. IMHO, this technique gives some control to the user

Re: Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Patrick H. Lauke
Thierry Koblentz wrote: IMHO, this technique gives some control to the user since it is still possible for her to open such links in new windows (i.e. Right-click Open Link in New Window (or Tab)). Using _blank leaves her with no choice. Even if a link *has* _blank, you can use the right click

Re: Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Thierry Koblentz
Patrick H. Lauke wrote: Even if a link *has* _blank, you can use the right click option. I know that ;-) My point is that setting the target attribute's value to WhatEverName gives the user a *choice*. It allows him to either open these links in new windows or in the *original new one*. With

Re: Betr.: [WSG] Window Pop-ups

2005-04-26 Thread Patrick H. Lauke
Thierry Koblentz wrote: Even if a link *has* _blank, you can use the right click option. I know that ;-) My point is Ah ... oops ... I see what you mean now (makes mental note to read a message first before replying). P :) -- Patrick H. Lauke