Javascript Launch Popup and Fill a text field
<p>I am struggling with this, hope something can shed some light. </p>

<p>On click of a button, I want to open a popup window, and transfer data from parent window to a text field in the popup. And, ensure popup is fully loaded before data is filled.</p>

<p>I tried using document.ReadyState=="complete", but it fires before the popup is fully loaded. I also tried to check the popup.body in a setTimeOut method, but to no avail. </p>

<p>Can you please help ?</p>

<p>PS: Popup window is a form from another domain !.</p>
