9951 explained code solutions for 126 technologies


javascriptHow to return to a previous page


<button onclick="history.back()">Go Back</button>ctrl + c
<button

will trigger return to previous page when clicked

onclick

click handler

history

system object to access browser history

.back()

returns browser to a previous page