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