I want to change the iframe source when something change in this iframe content, the iframe is in a different domian than the parent page. is this can be done or not?
I just need to add a hash to this iframe src, so that i can access this hash value from the parent page and do some stuff based on this value.
What i did:
In the iframe page i wrote: window.location.hash = "close_child";
and in the parent page i wrote: if (document.getElementById("MyIFrameId").src.indexOf("#close_child") > 0) {
but i always find that the src is empty