How to Disable right click option | Sanwebcorner

How to Disable right click option

Disable right click option using simple javascript code


disable right click option


index.html

<html>
<head>
<title>How to Disable to Right Click option</title>
<style>
body
{
background-color:#85B80E;
}
</style>
</head>
<body oncontextmenu="alert('You may not right click'); return false;">
<h1>DISABLE RIGHT CLICK OPTION : </h1>
<p> In this concept i am explaining about how to disable rightclick option using simple code , This is helps to protect your data form webpage.</p>
</body>
</html>




1 comments: