简体   繁体   中英

What Can I Use Instead of window.onunload() on JavaScript?

I was using window.onunload to open a new tab in JavaScript but it doesn't work anymore. When I make debug, it never goes in window.onunload function. What can I use instead of that? I have tried it on Chrome and Firefox and nothing happened.

Note: I searched and tried most of things about this topic in this site but could not find any correctly work solution.

I was using window.onunload to open a new tab in JavaScript but it doesn't work anymore. When I make debug, it never goes in window.onunload function. What can I use instead of that? I have tried it on Chrome and Firefox and nothing happened.

Note: I searched and tried most of things about this topic in this site but could not find any correctly work solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM