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

Popular posts from this blog

php - Array to string conversion smarty template -

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -