IFRame Definir valor na entrada fora do JS
var frame = document.getElementById('site2-frame');
frame.contentWindow.postMessage('Something something something', '*');
Disturbed Dunlin