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.
例如,如果我的页面上有一个 mailto 链接,我能否检测到浏览器在发送电子邮件后何时返回前台?
您可以使用窗口对象上的焦点和模糊事件处理程序来跟踪窗口是否获得或失去焦点,在用户单击发送后发送邮件......
window.addEventListener("focus", function(event) { //respond with a custom action when the window focus's here });
在他们的 mailto 功能完成后,我会“亲自”让用户重新关注感谢页面。在那个感谢页面上,放置脚本动作。
我无法意识到元 http-equiv="X-UA-Compatible" content="IE=edge.
1)如果某些用户有某个版本的IE,并且他尝试打开具体页面,该页面将在用户拥有的IE版本(最新版本)中打开。我不明白为什么我们需要该标签来维护它?
2)如果用户明确表示他的 IE(例如 IE9)想像以前的