Disabling Right Clicks on your Website
Some web masters simply hate it when other people copy their text and images for use on their own websites or for any other unacceptable purposes. If you want to minimize the copying of your web content by your visitors, you can simply disable the right click function of the mouse whenever they’re at your site.
However, doing so may have negative implications on your visitors as well. They might think that you’re accusing them as thieves. And you’re actually disabling other useful browser tools such as opening a website on a new page.
But if you still would like to disable the right-clicking functions of the mouse on your website, the html javascript that appears below can help.
Please note that it would work only on a server that has java script enabled. Make sure that your host supports it. Also, you have to put the entire script unchanged, inside the <body> </body> tags of your main html file. Always make a back-up of your index.html file before making any changes to it.
<SCRIPT language=”JavaScript”><!–var message=”Dooh!! The right-click has been disabled on this page!”;function click(e) {if (document.all) {if (event.button==2||event.button==3) {alert(message);return false;}}if (document.layers) {if (e.which == 3) {alert(message);return false;}}}if (document.layers) {document.captureEvents(Event.MOUSEDOWN);}document.onmousedown=click;// –>
How to create a Facebook Group
How to add chat to your website
How to Use the Include File Syntax in ASP, HTML, and PHP
How to Install a Free Guestbook on your Site
How to create a free forum website
How to Add a Free Counter to Your Site
Internal 500 Error
Header Tags
What is a FavIcon
Horizontal Dividers
How to remove copyrighted links
What is iFrame
How to setup an email on your domain
Accept Donations with PayPal
How to add a plug-in to WordPress
How to make a theme for Xoops
How to Install Xoops
How to make a Joomla theme
How to Make a WordPress Theme
How to add a shout box to your website
How to Burn Feeds using FeedBurner
How to install Mambo
How to Justify Texts on your Website
How to create a contact me form
How to make a table in Html
The Div tag
Disabling Right Clicks on your Website
How to Add Background Music to a Web Page
How to Install Joomla in 5 Easy Steps
How to Install WordPress on Your Website
How to Use the HTML Font Tags
SMF Forum
How to add a image to a link
How to add your website to Google
How improve your pagerank
The Redirection Code
Hex Color Chart
Scrolling text
The Font Tag
Special Html Characters
What is a URL
Hyperlink Code
How to Center a text
The "Underline" Html Tag
Bold Html Tag
Line Break
New Paragraph Html tag
How Does FTP Work?
How to add Youtube videos to Myspace
How to add Youtube videos to your web page
What NOT to do when making a website