Changing value of input in parent document
I have the following structure:
I need to change value of "test-input" from within that iframe. Typically I'd use
<input id="test-input" type="text" />
<iframe id="test-frame" src="whatever.php" />
.. more stuff ..
but the problem is, iframe and document are on different domains, so I can't access parent.document
parent.document.getElementById('test-input').value = 'whatever';