jaymc Posted November 20, 2007 Share Posted November 20, 2007 I have some code so that when a browser window is maximized after being minimized, the focus is set to 'message' This works fine, but, in firefox it treats any click on the page as an onfocus event As a result, drop down form selects do not work and I can not highlight any text Basically, I only want the focus executed if a WINDOW is brought into focus, not if the current window is receiving focus via a click etc window.onfocus = function() { document.getElementById('message').focus(); } Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted November 20, 2007 Share Posted November 20, 2007 when you click on a page that displays in a browser; the page has the focus set on it. Quote Link to comment Share on other sites More sharing options...
jaymc Posted November 20, 2007 Author Share Posted November 20, 2007 Do you mean thats just how it works, or, first check if the focus is already there? Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted November 21, 2007 Share Posted November 21, 2007 that is just how it works Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.