PDA

View Full Version : innerHTML in popup?


ez4ne12c
06-26-2003, 01:01 PM
hmm i change the innerHTML of a popup

say my main window opens a popup called search

inside search i have a span
search.document.write('<span id="results"></span>');

i change the innerHTML in of results

search.results.innerHTML='Not found';

and that is displayed

if i run the search again i would like to overwrite the results


search.results.innerHTML='Found the term you were search etc etc';


but the popup window doesnt seem to update the not found message remains...

has anyone tried this before
am i missing something?

is there a smarter way to refresh the popup other than getting the user to close it?

ez

ez4ne12c
06-26-2003, 01:20 PM
sorry

search.location.reload();

works
ez:o