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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -