waiting for an iframe to load before passing information to it
<p>Apologies if this is already answered elsewhere, but I've been searching all morning and not found a solution, so I'm hoping someone can help. </p>

<p>So - from  javascript I am opening an iframe</p>

<p>righttop.location = "timesheet_notes.php";</p>

<p>and then wanting to pass information to it:</p>

<p>righttop.document.notesform.ID_client.value = Client;</p>

<p>Obviously though, that line isn't going to work until the page has fully loaded in the iframe, and that form element is there to be written to. </p>

<p>So, what is the best/most efficient way to address this? Some sort of timeout loop? Ideally I would really like to keep it all contained within this particular script, rather than having to add any extra stuff to the page that is being opened. </p>

<p>I'd really appreciate some advice - very many thanks in advance! </p>
