该程序是想“查看源文件”时,打开一个alert视窗,避免让用户看到source code; 可是运行不出来,错误出在哪里呢
<html>
<head>
<title>onmousedown 应用实例</title>
<script language=javascript1.1>
 function right(e)
{
 if(event.button==2)
 {
 alert("\ncopyright 2000 文魁信息 all rights reserved.");
 }
 document.onmousedown=right;
 window.onmousedown=right;
}
</script>
</head>
<body>
<h1>
<a href="http://baidu.com">文魁信息有限公司</a>
</h1>
</body>
</html>