Home > Web Front-end > HTML Tutorial > Destroy object when WEB page leaves_html/css_WEB-ITnose

Destroy object when WEB page leaves_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:49:02
Original
1900 people have browsed it

Destroy the object when the WEB page is left

 window.onbeforeunload=function() {    return "你确定要退出本系统吗?"; }  window.onunload=function(){     if(my&& my.sessionId){        Ext.Ajax.request({          url : './userSession.do?method=logout',          method : 'POST',          params : {             sessionId:  my.sessionId          }        });     } }
Copy after login


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template