How to access into iframe:
var iframe = document.getElementById(\'sitefield1\');
var innerDoc = iframe.contentDocument || iframe.contentWindow.document;
var
You can't directly access frames across origins. In modern browsers you can use postMessage.
The frame sending the data needs to call postMessage
top.postMessage({ foo: "bar" }, "*");
and the frame receiving the data needs to register an event listener to look for messages and react to them.
window.addEventListener("message", receiveMessage, false);
function receiveMessage(evt) {
alert(event.data.foo);
}