I want to create a Page Back Button using HTML & CSS Without using Javascript or any other language. I want to do it in pure HTML & CSS.
I searched but didn't get any solution every time javascript is included in code but I need a pure HTML no any other language.
You can do it "without using JavaScript" just in case the previous page is known in advance, i.e. you are in a "detail" page and the "back" button will bring you to the "list" or home page, e.g.:
<a href="home">Back</a>
Else, if the previous page changes dynamically you need to use JavaScript history.back method:
<a href="javascript:window.history.back();">Back</a>
The following piece of code doesn't require any javascript file, but still uses javascript inside html :
<a href="javascript:history.back()">Back to previous page</a>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With