PDA

View Full Version : Disable right click code!!!


Alexy
04-29-2001, 12:57 AM
Please let me know
Any body knows the code for disable right click on page or hide the html on page.
Tanks.

Ace
04-29-2001, 01:02 AM
<SCRIPT language=javascript>
<!--
function click() {
if (event.button==2) {
alert('Dont forget to bookmark and visit everyday! Or put whatever you want here') }}
document.onmousedown=click
function MM_displayStatusMsg(msgStr) { //v1.0
status=msgStr;
document.MM_returnValue = true;
}
//-->
</SCRIPT>

toker
04-29-2001, 01:42 AM
Just a little note that will not hide your html a simple double click will do the trick. Also file/save and view/source will both reveal everyting so right click is only good to send hijackers to popup hell.

Pete Dogg
04-29-2001, 02:15 AM
Leave my fucking mouse alone.

toker
04-29-2001, 04:43 AM
Here.. mousy mousy mousy i got some java for you!!

bitz
04-29-2001, 11:23 AM
put the page in frames and minimize the left frame real small and turn off scrolling. THen disable right click in the main frame. Then they cant do a "edit view source" because it will just bring up the left frames source.

bitz
04-29-2001, 11:24 AM
oops "View/ Source"

Groovy
04-29-2001, 03:38 PM
yeah, people will still be able to got your source, and when surfers start to do these things they will hate the popup because they just want to let the link open _blank ( offcours they're already _blank but some surfers do that right click standard ) and probably clicks less, personally i wouldn't use it.

whooh hard story http://bbs.adultwebmasterinfo.com/ubb/smile.gif

fabian
04-29-2001, 04:51 PM
i'm not 100% sure but i remember it worked for me that you can view the source even when right click disabled by pressing CTRL or SHIFT and then right click in ie5.5 the normal right mouse button menu pops up.