Is there any way to make onbeforeunload work in Opera?

家住魔仙堡 提交于 2019-11-28 14:38:40

Upgrade to Opera 15. onbeforeunload is now supported in that version because they moved to the WebKit engine. It is still not supported in 12.x because that version and all prior versions are based on Presto.

Brian

It is not possible to use onbeforeunload with Opera. There is a cross-browser solution, but that solution covers practically every big browser except Opera (IE, FireFox, Safari, Chrome).

This explains unbeforeunload and beforeunload a bit better: http://help.dottoro.com/ljhtbtum.php

Also, this post explains it with a better example: Crossbrowser onbeforeunload?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!