Jump to content
xisto Community
campainer

Can you disable the left click?

Recommended Posts

Yes. You could just do something like this:

<body onclick="alert('Clicking is not allowed.'); return false">

If you only wanted to disable left clicking, you would have to change the code that checks whether the user had right-clicked to check for left-clicking.

Does that help?

Share this post


Link to post
Share on other sites

nah i did it jut then...

<script language="JavaScript">[br]// distributed by [URL=http://hypergurl.com]http://hypergurl.com[/URL][/br]<!--[br]var popup="Sorry, right-click is disabled.\n\nThis Site Copyright Š2000";[/br]function noway(go) {[br]if (document.all) {[/br]if (event.button == 1) {[br]alert(popup);[/br]return false;[br]}[/br]}[br]if (document.layers) {[/br]if (go.which == 3) {[br]alert(popup);[/br]return false;[br]}[/br]}[br]}[/br]if (document.layers) {[br]document.captureEvents(Event.MOUSEDOWN);[br]}[/br]document.onmousedown=noway;[/br]// --> </script>


script was from http://hypergurl.com/ :D

Share this post


Link to post
Share on other sites

script was from http://hypergurl.com/ :D

// distributed by http://hypergurl.com/


i didn't see that :D:D


no left-clicking would be hilarious... though i don't believe they'd be able to navigate your site too well.  lol
put a VIEW FREE PORN link in the middle of the page and disable left click haha


then you hav to disable right click too...... :D and then i can still get that url :D

Share this post


Link to post
Share on other sites

you would need to disable tab and shift+tab too for best results:

<body [b]onFocus[/b]="alert('The internet has deemed this site inappropiate for use.'); return false">also, if you don't want someone to move the mouse:<body onMouseMove="alert('The internet has deemed this site inappropiate for use.'); return false">

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.