Cross Domain Frame Handling

The javascript cross domain frame handling is because of same origin policy. There is an work around to communicate cross domains within the frames. To communicate cross domain frame, we can use fragment as reference.

If your parent window is a different domain, you can communicate as below from the frame.

<script language="javascript">
parent.location = yourparent window domain + '#somedata';
</script>

Comments are closed.