On Friday, November 26, 2004 2:53 PM, Mark Harwood wrote:
> The best and only way i do pop-ups is
> 
> href="http://google.com/"; onclick="window.open(this.href,
> 'popupwindow', 'width=400,height=300,scrollbars,resizable');return
> false;" 
> 
> this allows you to do whatever you like with the link and also makes
> it valid, right click-able and so forth..
> 
> Remeber to put onKeypress too

Please, don't add onkeypress to this in the name of device independence...
Onclick works just fine for keyboard users and for users that use
alternative devices that emulate keyboard usage. If you add onkeypress you
will quite possibly do more "harm" than good -- someone that uses a keyboard
for navigation etc won't be able to go anywhere because the pop up will keep
appearing.

If I'm on that particular link myself, even pressing the tab key to move to
the next link will cause the dialog to appear. Trying to open a new tab with
Ctrl + T, or open my feedreader (Sage) with Ctrl + S will cause the popup to
appear. It can actually become quite frustrating when onkeypress is used
like this...

Best regards,
Derek.
-- 
Derek Featherstone     [EMAIL PROTECTED]
phone: 613.599.9784;   toll-free: 1.866.932.4878 (North America)
Web Accessibility:  http://www.wats.ca
Personal: http://www.boxofchocolates.ca

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to