1、禁用鼠标左键功能 把如下代码加入<body>区域中: <script language="javascript">function click() {if (event.button==1) {alert('对不起,禁止使用此功能.')}}document.οnmοusedοwn=click</script> 2、自动关闭弹出窗口 <html> <body> <script language= "JavaScript "> function test() { showModelessDialog( "javascript:alert();window.close(); ", " ", "status:no;resizable:no; help:no;dialogHeight:30px;dialogWidth:40px; "); setTimeout( "location.reload(); ",1000); } </script> </body> <input type= "button " value= "弹出alert框,一秒后自动关闭; " onClick= "JavaScript:test() "> </html>