Javascript language

R4R® Javascript Javascript Example
(追記) (追記ここまで)
(追記) (追記ここまで)
Disabling Right Click button of mouse

How to Disabling Right Click button of mouse using JavaScript

Step 1. Written below code in your application.

<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\n
and you can not steal my images")
}
}
</script>
</head>
<body onmousedown="disable()">
<form>
<a href="#">Good Morning!!!!</a>
<p>Have a Nice Day!!!</p>
<p>Have a great Day!!!</p>
<img src=Image.jpg />
</form>
</body>
</html>
(追記) (追記ここまで)

Step 2. Run the Application.

(追記) (追記ここまで)
Copyright ©2021-22 r4r.co.in, all rights reserved. Theguestspost.com
Sitemap
Career
Post comment
About us
Subscription
Unsubscription

AltStyle によって変換されたページ (->オリジナル) /