What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 69646 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > JavaScript > Disable Right Click Event on Web Page ...
Lakhangarg

Disable Right Click Event on Web Page

 Code Snippet posted by: Lakhangarg | Posted on: 8/31/2009 | Category: JavaScript Codes | Views: 1532 | Status: [Member] [Moderator] | Alert Moderator   


Call This in the Head Tag and this code will shows the message Disabled on right click at any where on the web page.

<script language="JavaScript" language="javascript">

var msg="Disabled";
document.oncontextmenu=new Function(" alert(msg);return false")
</script>

Found interesting? Add this to:


>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/23/2013 10:11:24 AM