H I O X INDIA
FREE Javascript
Google
Web hscripts.com
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

Java Script Source
List All
Date & Time
Calendar
Stop Watch script
Slide Show
Image Effect
Mouse Effects
Color Picker Tool
Dynamic Color
Random Generator
Select All
Form Validation
Textbox Counter
Dynamic Form select
Bookmark
Window / User Info
Security / Authenticate
Status Bar
Title Bar
Cursor Position
Country List
Calculators
Delete Repeated Values
Alphanumeric
Free Games





No mouse Right click/Disable Right mouse click


About
This free right click disable javascript will disable the right click popup. Also it will protect your web site content,source from stealing. This free javascript code can be used in any html page.


Features
a) This javascript function will disable the right mouse click.
b) This will stop users from easily stealing your site content and from view source.
c) You can add the message as your wish.
d) Just copy the code in to your page and enjoy the effect.


Preview
Right click is disabled in this page. Test it by right clicking anywhere in this page.


Code
Code: Use ctrl+C to copy the code given below.
<!--        Script by hscripts.com          -->
<!--        copyright of HIOX INDIA         -->
<!-- more scripts @ http://www.hscripts.com -->

<script language=javascript>
<!-- Edit the message as your wish -->
var msg_box ="You dont have permission to copy";

function dis_rightclickIE(){
	if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
		alert(msg_box)
}

function dis_rightclickNS(e){
	if ((document.layers||document.getElementById&&!document.all) && (e.which==2||e.which==3))
	{
	alert(msg_box)
	return false;
	}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=dis_rightclickNS;
}
else if (document.all&&!document.getElementById){
document.onmousedown=dis_rightclickIE;
}
document.oncontextmenu=new Function("alert(msg_box);return false")


</script>
<!-- Script by hscripts.com -->
Release Date - 06-04-2007

Get free version without ©copyright link for just 5



Usage
a) Copy the code and use it for free.
b) If you wish to add your message then make changes in the following line,
      var msg_box ="(Add your message here)";
c)This free "no right clicking" JavaScript is tested in windows IE, firefox and mozilla.




License
- This javascript (misspelled as java script)/HTML code is given under GPL License
- i.e. Free use for those who use it as it is.
- Free, if your modification does not remove our copyright information and links.
- Detailed License information can be found here
- You can purchase the script if your requirements does not meet GPL License terms.


privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com

Others