Access js function outside a frame from a different domain

39 Views Asked by At

I have several frames (not iframe) inside a page. One of the frames is from a different domain from the main website. If my website is example.com, there is an frame with source example2.com. I have a function on the main page. I would like to call this function from the frame. window.parent.swapFrame() but it shows the obvious security error.

0

There are 0 best solutions below