I am writing a client-side search function for a page which searches the content in a separate file (same domain) that is displayed in an iframe.
I'm trying to code it so that when the user runs the search, the iframe will first be reloaded, then the search is run.
The iframe reloads, but the search is performed before the reload is complete and the updated content isn't included in the search.
How can you run code after the iframe has completely reloaded?
Thanks in advance.
I'm trying to code it so that when the user runs the search, the iframe will first be reloaded, then the search is run.
The iframe reloads, but the search is performed before the reload is complete and the updated content isn't included in the search.
How can you run code after the iframe has completely reloaded?
Thanks in advance.
Comment