1. 程式人生 > >JavaScript實用技巧

JavaScript實用技巧

 

1、禁止右鍵選單、選擇、複製

<body onLoad="count()" oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false"onmouseup="document.selection.empty()>