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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -