<script language="javascript"><!--function key(){ if(event.shiftKey){window.close();}//禁止shiftif(event.altKey){window.close();}//禁止altif(event.ctrlKey){window.close();}//禁止ctrlreturn false;}document.onkeydown=key;if (window.Event)document.captureEvents(Event.MOUSEUP);//sWordmaple Javascript article.function nocontextmenu(){event.cancelBubble = trueevent.returnValue = false;return false;}function norightclick(e){if (window.Event){if (e.which == 2 e.which == 3)return false;}elseif (event.button == 2 event.button == 3){event.cancelBubble = trueevent.returnValue = false;return false;}}//禁止右键document.oncontextmenu = nocontextmenu; // for IE5+document.onmousedown = norightclick; // for all others//--></script><body onselectstart="return false"; onpaste="return false";>选择字符试试1010110<input size=30><!--onselectstart禁止选择 onpaste禁止粘贴-->
(出处:http://www.sheup.com)