Reputation: 3687
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?
Upvotes: 2
Views: 1368
Reputation: 186562
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.
Upvotes: 1
Reputation: 4038
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.
Upvotes: 0