Re: Disablign the ctrl+click functionality on TDs in Firefox
David JH <[email protected]>
| Newsgroups | gmane.comp.web.dom.wdf |
|---|---|
| Message-ID | <[email protected]> |
> > > > Ctrl + click on a TD in firefox and it selects it, adding a border > around it > > to show you. > > > > How can I disable this behaviour, or override the styles to hide that > > border? > > > > cheers One thing you can do is add an event handler to the "mousedown" event that calls event.preventDefault(). In it's simplest incarnation: <td onmousedown="if(event.preventDefault)event.preventDefault()"> ... </td> If you don't want to apply it manually to each cell, you could do the same thing for the document object (this will have other side effects that you probably don't want, however - it will depend somewhat on the context of the problem). ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/9rHolB/TM --------------------------------------------------------------------~-> Unsubscribe [email protected] List info http://www.quirksmode.org/dom/list.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wdf-dom/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/