0

I know, that Opera doesnt support JS onbeforeunload message and will not support it. But is there any way to make it work somehow? Or maybe some jQuery plugins can make it work and let script know if window is going to close? I found only way to make onclick for every a tag, but this is not the complete solution.

4

2 回答 2

3

onbeforeunload该版本现在支持升级到 Opera 15 ,因为它们已迁移到 WebKit 引擎。12.x 仍然不支持它,因为该版本和所有以前的版本都基于 Presto。

于 2013-07-03T16:00:46.553 回答
0

不能在 Opera 中使用 onbeforeunload。有一个跨浏览器解决方案,但该解决方案几乎涵盖了除 Opera 之外的所有大型浏览器(IE、FireFox、Safari、Chrome)。

这更好地解释了 unbeforeunload 和 beforeunload:http: //help.dottoro.com/ljhtbtum.php

另外,这篇文章用一个更好的例子来解释它:Crossbrowser onbeforeunload?

于 2013-05-20T18:45:22.970 回答