Barry Beattie wrote: > you mean like this? > > <p id="photobutton"> > <a href="#" > onClick="window.print();return false" > onKeyPress="window.print();return false" >> > Click here... > </a> > > (just curious, wanting to get it right)
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 press any keys because the print dialog will keep on loading. 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 print dialog 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/ Proud presenters of Web Essentials 04 http://we04.com/ Web standards, accessibility, inspiration, knowledge To be held in Sydney, September 30 and October 1, 2004 See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
