Tuesday, April 10, 2012

Focus does not run inside iframe on seperate domain

I have an iframe that calls focus() on one of the <input> fields inside of its own frame when the page loads.

For some reason when this iframe is shown on the page with a seperate domain, the focus does not seem to work.

It looks like a cross-domain issue as this works if the iframe is on the same domain, but I don't know why.

The focus is being called inside of the iframe, it's not trying to interact with anything outside of the iframe and nothing is trying to get inside.

Any ideas?

No comments:

Post a Comment