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

NO JUNK, Please try to keep this clean and related to the topic at hand.
Comments are for users to ask questions, collaborate or improve on existing.