views:

202

answers:

2

I've got a page that has an iframe and web page in the iframe runs a focus() on one an input box in the iframe... how can I prevent that focus() from running?

A: 

I don't think you are allowed to access input boxes in an iframe if the page is from a remote source due to cross-domain security limitations.

Knix
+1  A: 

I doubt you're able to do this, unless there's some sort of weird browser quirk in that if you set focus on your outer page it gains priority over the iframe.

meder
+1: I would try to set focus on the parent page and see if that overrides the focus from the iframe
Josh