Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,554 members, 7,816,343 topics. Date: Friday, 03 May 2024 at 09:50 AM

How To Add A Return Button To Previous Page In Your Website - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How To Add A Return Button To Previous Page In Your Website (224 Views)

I Want To Add A Backend Tech To My Javascript Knowledge. Java, PHP Or Python? / How To Add A "CHAT-US" Button On Blogger Using "Getsitecontrol.com Tools" / How To Add A Direct Download Link To A Blog (help) (2) (3) (4)

(1) (Reply)

How To Add A Return Button To Previous Page In Your Website by benchatronics: 6:48am On Mar 02, 2023
Some times you may want your visitors to click a button to return to a previous page they have visited instead of using the browser return button.

In this article we are going to see how we can add a return button.
There are many ways to do this we can use JavaScript or use the http meta refferer.

Methods to add a return button in website
1.onClick="javascript:history.go(-1);
2.{{request.META.HTTP_REFERER}} for django developers
3.href="../"
The illustration of how to use AND implement return button code is detailed 👉 here
Credits: benchatronics

(1) (Reply)

Fully Functional CBT Solutions For Sale / Coding Is About Consistency And Determination by AI / Website Developing

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 6
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.