James McMurray
Dec 3rd 2007, 1:22 pm
Yes, I know it's frowned upon. Yes, I know the world is safer if neophyte coders aren't allowed these atrocities. And yes, I know it won't work in some browsers.
But I still want to do it. :)
I've got some code that works great onclick. However, it's set up to change an input box's background color, so running it onclick is not going to work. I can do it on control click, but eventually I'll be adding other right click options to the app, so would like to consolidate them all under one roof so-to-speak.
Can someone please post or point me to a snippet that will check for a right click and disable the browser's right click menu if possible?
Thanks,
James
But I still want to do it. :)
I've got some code that works great onclick. However, it's set up to change an input box's background color, so running it onclick is not going to work. I can do it on control click, but eventually I'll be adding other right click options to the app, so would like to consolidate them all under one roof so-to-speak.
Can someone please post or point me to a snippet that will check for a right click and disable the browser's right click menu if possible?
Thanks,
James