Setting up communication (Cross-Domain):
-In Parent Window:
-In Iframe:
-Both In Iframe or Parent:
Setting up communication (Same-Domain only):