Protect your own web page text and pictures:
(1), their own hard to create or collect articles by others "^c^v" stolen, who will not be comfortable in mind. We can add onselectstart= "return false" to our homepage <Body> tag, so that the mouse can not select text;
(2), in the Web page <Body> tags to add oncontextmenu= "Self.event.returnvalue=false" statement, so that the right mouse button can not eject the right button menu, you can not perform the "Picture Save as" command options;
(3), Prohibit the right menu: Add the following code to
<script language=javascript>
function Click ()
{
if (event.button==2)
{alert (' Welcome to visit this site! ')}
}
Document.onmousedown=click
</SCRIPT>
(This method can be easily cracked)
(4), no right-click menu: Pop-up "Add to Favorites" window
<script language=javascript>
<!--
function Click ()
{
if (event.button==2)
{Window.external.addFavorite (This.location,this.document.title)}
}
Document.onmousedown=click
-->
</SCRIPT>
(This method can also be cracked)