Tuesday, November 8, 2011

Disable Right Click of Mouse on Your web Page Using Java Script







<html>
<head>
<script language="JavaScript">
function disable()
{
if (event.button == 2)
{
alert("Sorry no rightclick on this page.\nNow you can not view my source\nand you can not steal my images")
}
}
</script>
</head>
<body onmousedown="disable()">
<p>Right-click on this page to trigger the event.</p>
<p>The event property is not recognized in Netscape.</p>
<p>Note that this is no guarantee that nobody can view the page source, or steal the images.</p>
</body>
</html>

About ashok bhanwal

Pellentesque penatibus, sed rutrum viverra quisque pede, mauris commodo sodales enim porttitor. Magna convallis mi mollis, neque nostra mi vel volutpat lacinia, vitae blandit est, bibendum vel ut. Congue ultricies, libero velit amet magna erat. Orci in, eleifend venenatis lacus.

You Might Also Like

1 comment:

Google+

Copyright 2013 copyright ashok bhanwal. Powered by Blogger.

About Me

My Photo
hello!  i am ashok bhanwal.professionally i am web designer and Developer.I am Quite Familiar with html, css, asp.net,php, c#, mssql,jquery,ajax.I am fun loving guy.I am always surfing internet for searching new stuff in technology.

Contact Form

Name

Email *

Message *

Google+ Followers

Total Pageviews

Top Stories

Amazing Gift for you

Blogger news

Blogroll