location.href go back code example Example: href back page javascript <a href="javascript:history.back()">Go Back</a>