Let me start by saying that my understanding of Javascript is almost 0
I'm trying to write a function that will take the user back to the page they came from, but not their cached version. Since
window.location = history.back()
takes the user back, and
window.location = 'www.whatever.com'
takes the user to whatever.com, I figure I can do somehting like this:
var location = history.back()
window.location = location
but that (and all variations on it I can think of) doesn't work. Any ideas?
I'm trying to write a function that will take the user back to the page they came from, but not their cached version. Since
window.location = history.back()
takes the user back, and
window.location = 'www.whatever.com'
takes the user to whatever.com, I figure I can do somehting like this:
var location = history.back()
window.location = location
but that (and all variations on it I can think of) doesn't work. Any ideas?