For Google chrome, you can "Emulate a focused page", making it so that the page stays focused even when clicking elsewhere.
The option is in the rendering tab.