当前位置: 代码迷 >> Web前端 >> 封锁浏览器 执行action ()
  详细解决方案

封锁浏览器 执行action ()

热度:34   发布时间:2012-10-08 19:54:56.0
关闭浏览器 执行action ()
js函数 onbeforeUnload


<script type="text/javascript">
function logOff(){ 
   document.location.href = '../admin/adminLogoutServlet';

</script>
</head>
</head>
<frameset framespacing="0" border="0" frameborder="0" rows="80,*" onbeforeUnload="logOff()">
<frame name="banner" scrolling="no" noresize target="menu" src="Top.jsp" marginwidth="0" marginheight="0">
<frameset name="content" cols="192,*">
<frame name="menu" target="main" src="Left.jsp" noResize marginwidth="0" marginheight="0" scrolling="yes">
<frame name="body" src="aa.html" noResize marginwidth="0" marginheight="0" scrolling="auto">
</frameset>
</frameset>
<noframes>
<body>
你使用的浏览器不支持框架。
</body>
</noframes>
</html>
  相关解决方案