By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,130 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

simple script needed..

P: n/a
Hey

I've had a simple script that disabled my back button of my browser, but
i've seem to have lost it.
Someone who can give me the code, or where to find it? Same goes for
disabling the right click of my mouse button...

THX

Netghost.
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
KS
This one disable right click but is not bulletproof since disable javascript
will not run the script.

function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Ingen tilgang. Bruk menybaren.");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
</SCRIPT>
"Netghost" <c_******@hotmail.com> wrote in message
news:lG**********************@hebe.telenet-ops.be...
Hey

I've had a simple script that disabled my back button of my browser, but
i've seem to have lost it.
Someone who can give me the code, or where to find it? Same goes for
disabling the right click of my mouse button...

THX

Netghost.

Jul 20 '05 #2

P: n/a
In article <lG**********************@hebe.telenet-ops.be>,
c_******@hotmail.com says...
Hey

I've had a simple script that disabled my back button of my browser, but
i've seem to have lost it.
Someone who can give me the code, or where to find it? Same goes for
disabling the right click of my mouse button...


No such thing. If you want a crappy little script that fakes disabling
right-click, here:
http://hyweljenkins.co.uk/programmin...rightclick.php

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #3

P: n/a
Hywel Jenkins <hy**********@hotmail.com> wrote in message news:<MP***********************@news.individual.ne t>...
In article <lG**********************@hebe.telenet-ops.be>,
c_******@hotmail.com says...
Hey

I've had a simple script that disabled my back button of my browser, but
i've seem to have lost it.
Someone who can give me the code, or where to find it? Same goes for
disabling the right click of my mouse button...


No such thing. If you want a crappy little script that fakes disabling
right-click, here:
http://hyweljenkins.co.uk/programmin...rightclick.php


You stupid cunt.
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.