Right click disable java script

Started on the old forum in September 2011 · view the original in the archive · old links redirect here

6 replies · 858 views · started 15 years ago · 1 min read

6 participants
prasun Junior · 11 posts #1

Use the script below so when someone right clicks to save an image off your page, a message will come up letting people know that your information is copyrighted.

This script works on all browsers, and it's not foolproof. If someone really wants something from your page they can find ways around it, but at least it's a warning to people who want to take your graphics. Copy and paste the following code, and make sure it comes between <head> </head> tag

<script type="text/javascript">
<!--
var message="Put a custom message here.....";
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
metulj Super moderator Principal · 1,726 posts #2

prasun wrote: Use the script below so when someone right clicks to save an image off your page, a message will come up letting people know that your information is copyrighted.

This script works on all browsers, and it's not foolproof. If someone really wants something from your page they can find ways around it, but at least it's a warning to people who want to take your graphics. Copy and paste the following code, and make sure it comes between <head> </head> tag

<script type="text/javascript">
<!--
var message="Put a custom message here.....";
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>

and then visitor disables java in browser.... LMFAO besides... images can be stollen from any site... so why waste time ?

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

subzero Super moderator Fellow · 3,954 posts #3

If they using pc browsers Ctrl + u then copy image.

Or Drag and Drop lmao easy

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

yakuza023 Newbie · 3 posts #4

Opera Mini users can download image also by pressing (#,6) . . ' . . . , .

manavworld Developer · 118 posts #5
<script language="javascript" type="text/javascript">function IE(e) { if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3")) { alert('use your right fingure on ur as hole.'); return false; }} function NS(e) { if (document.layers || (document.getElementById && !document.all)) {if (e.which == "2" || e.which == "3") { alert('use your right fingure on ur as hole.'); return false; }}} document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");</script>

Try with this code

jas_in_the_end Junior · 12 posts #6
<script language="javascript" type="text/javascript">function IE(e) { if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3")) { alert('use your right fingure on ur as hole.'); return false; }} function NS(e) { if (document.layers || (document.getElementById && !document.all)) {if (e.which == "2" || e.which == "3") { alert('use your right fingure on ur as hole.'); return false; }}} document.onmousedown=IE;document.onmouseup=NS;docu ment.oncontextmenu=new Function("return false");</script>

Me checked bt its not working what is full code manavworld brother check in mozila firefox ctrl+u

jas_in_the_end Junior · 12 posts #7

manavworld wrote:

<script language="javascript" type="text/javascript">function IE(e) { if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3")) { alert('use your right fingure on ur as hole.'); return false; }} function NS(e) { if (document.layers || (document.getElementById && !document.all)) {if (e.which == "2" || e.which == "3") { alert('use your right fingure on ur as hole.'); return false; }}} document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");</script>

Try with this code

Brother upload update script ...

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close