How to override the focus on page in greasmonkey

Posted by nimo on Stack Overflow See other posts from Stack Overflow or by nimo
Published on 2010-06-03T15:03:13Z Indexed on 2010/06/03 15:04 UTC
Read the original article Hit count: 150

Filed under:
|

After the page has loaded a piece of javascript set focus on window and on a specific input field. I want to prevent this focus on the input field how can I do that with javascript in greasemonkey? Maybe this is not possible because greasemonkey don't execute the code until the entire page has loaded? Then let's say I can run my code at any time how can I prevent the focusing?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about greasemonkey