html - How can a web page robustly switch to another page with client scripting? -
i see in javascript; sending user page , how change page within javascript references using window.location
switch new page. possible have similar result including meta tag http-equiv refresh value.
while these work advertised, need continue retry in event host application not available @ time client starts up.
a cross-browser solution particularly appreciated.
update: current solution suggested. initial ajax verify connectivity, followed update of window.location
. concern 1 given - status can change between getting response , updating page reference.
i update lower level element body.innerhtml
, example, in page body, prefer change top level element cleanly switch on new page.
the purpose of initial page bootstrap long running application uses ajax loop fetch updates of both content , periodic page refreshes. intent able drop off web display panels , have them automatically configure when connected network.
Comments
Post a Comment