Insert the following javascript code between
... head>:<
Script logage
=
"
JavaScript
"
>
FUNCTION
Click () {
IF
(Event.Button
==
2
) {Alert
"
Sorry!
"
}} Document.onMousedown
=
Click;
Script
>
You can achieve the right-click functionality that disables the right mouse button on the web page. This is the simplest code. In the IF statement, you can customize the events generated by the right click of the mouse, or what you can do not happen. Question: Walk in IE, but there is no effect in Myie. I don't know if there is any solution? Other browsers have not been trial, so I don't know what the result will be? Other solutions:
<
Body
OnContextMenu
= "Return False"
Onsentstart
= "Return False"
ONCOPY
= "Return False"
ONCUT
= "Return False"
ONPASTE
= "Return False"
>
Join this code, you can disable the right mouse button, disable the mouse to pick, copy, cut, paste.
<
Script logage
=
"
JavaScript
"
>
FUNCTION
Click () {
IF
(Event.Button
==
2
) {Alert
"
Sorry!
"
}} Document.onMousedown
=
Click;
Script
>
You can achieve the right-click functionality that disables the right mouse button on the web page. This is the simplest code. In the IF statement, you can customize the events generated by the right click of the mouse, or what you can do not happen. Question: Walk in IE, but there is no effect in Myie. I don't know if there is any solution? Other browsers have not been trial, so I don't know what the result will be? Other solutions:
<
Body
OnContextMenu
= "Return False"
Onsentstart
= "Return False"
ONCOPY
= "Return False"
ONCUT
= "Return False"
ONPASTE
= "Return False"
>
Join this code, you can disable the right mouse button, disable the mouse to pick, copy, cut, paste.
<
Body
OnContextMenu
= "Return False"
Onsentstart
= "Return False"
ONCOPY
= "Return False"
ONCUT
= "Return False"
ONPASTE
= "Return False"
>
Join this code, you can disable the right mouse button, disable the mouse to pick, copy, cut, paste.