左右键不同操作

<script ***script>
setTimeout('window.close();',3000);
function show()
{
if (window.event.button == 1)
{
alert("左");
}
else if (window.event.button == 2)
{
alert("右");
}
}
</script>

posted @ 2013-11-04 23:20  明济安  阅读(118)  评论(0编辑  收藏  举报