<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script language="javascript">
function show() {
if (window.event.button == 1) {
alert("您好");
}
else if (window.event.button == 2) {
alert("禁止右键");
setTimeout("MyClose(); ", 120000);
}
}
function MyClose() {
window.close();
}
</script>
</head>
<body>
<input type="button" onmouseup="show()" value="试试看"/>
</body>
</html>