Redirecting html page with javascript -
i have combo-box redirects user specific page. redirect, if use
window.location.href = ...
when hit back, automatically redirects again. , if use
window.location.replace (...)
they can't go back, because history gets replaced new page.
i have thought it's common scenario, wanted ask if knows trick i'm missing?
thanks
just check position of syntax.
put inside function or event.
use below syntax :
window.location = "your_url";
Comments
Post a Comment