Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8649091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:28:24+00:00 2026-06-12T13:28:24+00:00

I want to put a link in a button that goes to last page.

  • 0

I want to put a link in a button that goes to last page. But it is common that people go to other sites between the present page and last page in my web. So, is there a way to say something like go to history the first you find between three pages that I select: a.php, b.php, c.php?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:28:25+00:00Added an answer on June 12, 2026 at 1:28 pm

    No, I am pretty sure you cannot do that. Anything that let you access the history of the browser would be a security risk in my opinion.

    Anyway, if you want a link that goes to the last page that they visited on your site then I suggest you track it somewhere. For example, on each page load you could store the page in a session variable. This value could then be queried when they click the “last page” link.

    With a session variable though you do have timeout concerns. If you need something more long term you could consider using a cookie, but be aware there are new laws that force you to notify any user that you are using cookies to store information like this.

    Alternatively, if the user is a registered user (and has a login) then you could store the last page in the database.

    Of course, doing this on a page load means you have to actually track the last two pages (because you will also be tracking the current page too).

    Again, another alternative is you could pass the last page url around each page as a url parameter – much like the common “returnurl” that some sites use when redirecting to a login page

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this link (not a button) that I want to click on ...I
I want to have a component that looks like a button, but instead of
I want put a button on android edittextpreference. I create a custom editextpreference: public
I m using jquerymobile, I want to put content inside the page fetched by
Here is my HTML <div id=test>There I dont want put button</div> and my CSS
So I have a website where I want to put the subscribe button, here
I have a page that I want to have a list of items (header
I've projected an Intranet Ajax application and I want put it in a full
hey, hi i want put limit on object creation means a class can have
I want to put two side by side on another (I have three )

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.