history.back(); in node js code example
Example: history.back()
// --------------------if history.back() not working---------------------
//instead of this
<a href="javascript:history.back();">back</a>
//do this
<a href="javascript:history.go(-1);">back</a>