Navigate Back to the Target

Navigate Back to the Target

One of the easiest methods to navigate back to the page where they came from is with JavaScript called document.referrer. This document.referrer means the page that referred the current one. You can use it to create a link or a button to take the user back without the aid of a browser’s “Back” command.

document.write (“Click to go back “)


Share the Post: