笨小孩做开发

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

<!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>

posted on 2013-04-01 10:03  笨小孩做开发  阅读(168)  评论(0编辑  收藏  举报