Is it possible check if there is a value for history.go(-1)? I know you can\'t access history.previous directly.
I am trying to stay away from document.referrer beca
Actually, history.length is always one or more, since the current page counts. Also, if you have a forward history (i.e. you used the back button), those pages also count. So you need a more complicated check:
history.length
if( (1 < history.length) && document.referrer ) {