Let's say I have a page from www.website1.com.
Then I have a iFrame from www.myiframewebsite.com that is embedded in the page with id of iframe1.
I would like to do the following:
var myIframe = document.getElementById('iframe1');
myIframe.contentWindow.scrollTo(xcoord,ycoord);
So basically I would like to interact from parent page with child iFrame as if that iFrame is on same domain. There is a similar question Cross domain iframe issue, but I don't want to use post messages to solve this.
Is there anything in CORS that I can use?