Reputation: 2834
Similar to the posts below:
From the root/parent I want to be able to pass focus to the iframe.
Anything that may be in focus in the iframe is fine.
iframe.contentWindow.focus();
However, the iframe.contentWindow is not accessible because its a cross-origin frame.
Upvotes: 1
Views: 1070
Reputation: 2834
Seems like the answer is: not possible.
If there is a script running in the iframe you can directly call focus from there.
Upvotes: 1