The code used to make this work is shown below (Cut and Paste between the HEAD tags of your web page):
| <script LANGUAGE="JavaScript"> <!-- function click() { if (event.button==2) { alert('You Can NOT use the Right Mouse Button on this Page, Sorry!'); } } document.onmousedown=click // --> </script> |
(If you change the 'event.button' value to 1 you can stop the left mouse button working!)
Related Articles
- Window StatusHow to use this handy function to change the window status in a viewers browser.
- Stop SpamPreventing your e-mail that you placed on your site from being found by spammers is very hard. Some have even taken their e-mail addresses off their sites and replaced them with contact forms to prevent this. Here is a neat .htaccess method to help put a stop to this. This will stop many of the bo....
- Simple Hit CounterUse this simple script for a basic click counter to display the amount of hits to your site.
- Image Opacity Control By CSSThis is only viewable in Internet Explorer. This script will make an image grey until it has a mouse over it. Once you mouseoff, it changes back to grey. Copy and paste this code into your <img>command.
- onMouseover? What's This?Well, its time to try out your first javascript. This one is nice because we dont have to deal with adding the script tag. This little script will write something of your choice to the browsers status bar when you move your mouse over a link. Lets look at the example:
- 5 Secrets to Effective Pay-Per-Click AdvertisingWith so many companies swarming the World Wide Web with their products, how can you and your products and services stand out?
- Jquery Fade In.Fade OutIn this tutorial Ill show you some simple effects you can use to spice up your websites using jquery.
- Add Falling Snow using Java ScriptHave you ever seen the enchanting dance of falling snowflakes? This tutorial will show you how to create your very own Java Script snow on your own web page.
- A flying menu attack can wound your navigationHidden menus are like hidden road signs: they force you to stop when youd rather keep going. We examine the weaknesses of pop-up, pull-down and cascading menus. By David Walker As a kid riding in the back of the famil...
- Parked Domain Names - Making Money with themHave you ever typed in a domain name and came to what looks like a default page of a domain name registrar that reads,
