Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为 ASP 网页的“BODY”定义的“onBlur”处关闭一个弹出窗口,因此当用户在弹出窗口之外单击时,弹出窗口将关闭。我希望弹出窗口可以在屏幕上移动,它适用于除 Opera 之外的所有浏览器。
在 Opera 中,单击弹出窗口的标题栏时会触发“onBlur”事件 - 这对我来说似乎很奇怪,因为标题栏是弹出窗口的一部分,对吧?
我能做些什么呢?
也许从父窗口的 onfocus 关闭弹出窗口?
我可以根据此测试确认问题:
javascript:void(window.open('data:text/html,window.onblur=window.close', '', 'width=100,height=100'));
也许您可以在https://bugs.opera.com/wizard/上报告错误?