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.
So - from javascript I am opening an iframe
righttop.location = "timesheet_notes.php";
and then wanting to pass information to it:
righttop.document.notesform.ID_client.value = Client;
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.
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.
I'd really appreciate some advice - very many thanks in advance!