<form id="form1">
<iframe style="display:none" name="ifm0">
</form>
<script>
function document.oncontextmenu(){event.returnValue=false;}
function click(){
if(event.button==2){
newpage=ifm0.showModelessDialog("javascript:alert('您好,现在点击了右键');window.close();","","status:no;resizable:no;help:no;dialogHeight:30px;dialogWidth:40px;");
setTimeout("ifm0.location.reload();",2000);
}
if(event.button==1){
newpage=ifm0.showModelessDialog("javascript:alert('您好,您点击了左键');","","status:no;resizable:no;help:no;dialogHeight:30px; dialogWidth:40px;");
setTimeout("ifm0.location.reload()",2000);
}
}
document.onmousedown=click;
</script>
<iframe style="display:none" name="ifm0">
</form>
<script>
function document.oncontextmenu(){event.returnValue=false;}
function click(){
if(event.button==2){
newpage=ifm0.showModelessDialog("javascript:alert('您好,现在点击了右键');window.close();","","status:no;resizable:no;help:no;dialogHeight:30px;dialogWidth:40px;");
setTimeout("ifm0.location.reload();",2000);
}
if(event.button==1){
newpage=ifm0.showModelessDialog("javascript:alert('您好,您点击了左键');","","status:no;resizable:no;help:no;dialogHeight:30px; dialogWidth:40px;");
setTimeout("ifm0.location.reload()",2000);
}
}
document.onmousedown=click;
</script>