hi...i'm new here...and i would like to ask about disabling right mouse click.
how do u do that?can u give me the script?thx..
hi...i'm new here...and i would like to ask about disabling right mouse click.
how do u do that?can u give me the script?thx..
Please search the forums for previous discussions of similar topics before posting a question about such a much repeated topic.
The short answer to your post though is:
Don't do it to protect your material, it won't. That's what copyright is for. If you want to do it for cosmetic or functionality reasons, be careful as it could mess up other things about your page. Scripts are available in the script library. Go to:
http://www.dynamicdrive.com/
and use the search box in the upper right corner, try:
disable right click
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
You can't. There are various scripts available that irritate users with annoying popups every time said user tries to right-click, but there's no way to reliably stop users right-clicking. The knowledgeable ones will just laugh off your attempts.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Don't do it!![]()
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
You mean that script's still on DD? I thought it was going to be taken down.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Code:<script language="javascript"> document.oncontextmenu=function() { return false } </script>
Last edited by mburt; 07-30-2006 at 03:22 PM.
- Mike
What's wrong with the script I put above?
Twey
You can't. There are various scripts available that irritate users with annoying popups every time said user tries to right-click, but there's no way to reliably stop users right-clicking. The knowledgeable ones will just laugh off your attempts.
- Mike
It still doesn't work.What's wrong with the script I put above?
You're telling me a user can't get past that? In fact, a lot of browsers will simply disallow that by default, so the user would never even know it was there.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
It doesn't let you right-click in IE or Mozilla
- Mike
Bookmarks