Blog Archive

Javascript call function in parent frame from child iframe

Just use parent.functionName()

If the child iframe is not in the same server as the parent frame you will get cross scripting error as described below

Unsafe JavaScript attempt to access frame with URL http://www.server1.com/abc.html from frame with URL http://www.server2.com/xyz.html


No comments :

Post a Comment