Thursday, February 16, 2012

How to dissable no right click on browser using jQuery

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
    <title>How to dissable no right click on browser Page</title>
    <script src="jquery-1.3.2.min.js" type="text/javascript"></script>
    <!--Free downloads on>
    <form id="form1" runat="server">
    <h1>Right click is dissable in your browser</h1>

<script type="text/javascript" language="javascript">
$(document).ready(function() {
    $(document)[0].oncontextmenu = function() {
    alert("Action prohibited.");
    return false;


using System;

public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)


Post a Comment