•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 403,112 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,287 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 10748 | Replies: 2
![]() |
•
•
Join Date: Oct 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hello all! I have a javascript running on my site at http://www.kayoss.net that disables right clicking (viewing source, saving pictures, etc.) that works beautifully in IE...but not in Firefox. Does anyone know of a solution?
•
•
Join Date: Aug 2004
Posts: 49
Reputation:
Rep Power: 5
Solved Threads: 1
Disabling right click is done using a single statement.
<body oncontextmenu="return false;">
This works for both the mouse and the keyboard in all modern browsers except Opera (which doesn't allow you to block right click).
<body oncontextmenu="return false;">
This works for both the mouse and the keyboard in all modern browsers except Opera (which doesn't allow you to block right click).
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
age ajax asp beta bon browser browsers business developer development echo email encryption environment firefox gecko home html ibm. news internet internet explorer 7 it leak linux memory microsoft mozilla msdn networking news office open source open-source patch phishing remote working scams security site social software sql super testing trends users vista web webmail working
- Javascript links not working (Web Browsers)
- Why javascript does not work on firefox? (JavaScript / DHTML / AJAX)
- Help re scrolling bar not working in firefox, CSS problem (HTML and CSS)
- AJAX not working on firefox (JavaScript / DHTML / AJAX)
- Javascript not working in Firefox (JavaScript / DHTML / AJAX)
- javascript works in IE but not working in firefox (JavaScript / DHTML / AJAX)
- javascript in mozilla firefox (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: JavaScript reference website or download
- Next Thread: JavaScript Timer



Linear Mode