<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[how to trick a tab into thinking it has focus?]]></title><description><![CDATA[<p dir="auto">I have an app running in one tab (target), and other apps running in other tabs. The target app refuses to update itself unless it has focus. I think it uses the HTML DOM method document.hasFocus() . Is there a way to trick an app running in a tab into thinking it has focus although it hasn't? It would be very annoying to give it focus every time it is about to update because I'm working in other tabs. What can I do? I can't remove the check for focus in target.</p>
]]></description><link>https://forums.opera.com/topic/36846/how-to-trick-a-tab-into-thinking-it-has-focus</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Mar 2026 16:29:09 GMT</lastBuildDate><atom:link href="https://forums.opera.com/topic/36846.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Dec 2019 19:04:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to trick a tab into thinking it has focus? on Mon, 02 Dec 2019 20:03:52 GMT]]></title><description><![CDATA[<p dir="auto">Can you redefine html dom methods in Opera? So that the redef only is valid for the target document? win.document.hasFocus = function(){ return true; };</p>
<p dir="auto">Would that work?</p>
]]></description><link>https://forums.opera.com/post/191202</link><guid isPermaLink="true">https://forums.opera.com/post/191202</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Mon, 02 Dec 2019 20:03:52 GMT</pubDate></item></channel></rss>