Page 1 of 1

Jquery ป้องกันการคลิกขวา Browser EI ,firefox,chrome

Posted: 13/01/2010 12:42 am
by mindphp

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>jQuery disable right click easily Jquery ป้องกันการคลิกขวา Browser EI ,firefox,chrome  </title>
    <script language="javascript" type="text/javascript"
      src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
    </script>
    <script type="text/javascript" language="javascript">
        $(function() {
            $(this).bind("contextmenu", function(e) {
                e.preventDefault();
            });
        }); 
    </script>
</head>
<body>
    Sed lacus. Donec lectus. Nullam pretium nibh ut turpis.
    Nam bibendum. In nulla tortor, elementum vel, tempor at,
    varius non, purus. Mauris vitae nisl nec consectetuer.
    Donec ipsum. Proin imperdiet est. Phasellus dapibus semper
    urna. Pellentesque ornare, orci in consectetuer hendrerit,
    urna elit eleifend nunc, ut consectetuer nisl felis ac diam.
    Etiam non felis. Donec ut ante. In id eros.
</body>
</html>