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 1114159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:58:01+00:00 2026-05-17T02:58:01+00:00

As the title says, will this code work and will it work in major

  • 0

As the title says, will this code work and will it work in major browsers?

I ask because currently I have no resources to test it, so I would appreciate some help on this.

Here is what I have (not tested):

setTimeout(window.location.history.go(-2), 5000);

Thanks

  • 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-05-17T02:58:01+00:00Added an answer on May 17, 2026 at 2:58 am
    setTimeout(window.location.history.go(-2), 5000);
    

    history is a property of window, not location. Also if you want it to trigger after a delay you will need to make a delayed-call function—currently you are calling go() immediately, and passing the return value of the function to setTimeout, which clearly won’t work. You probably mean:

    setTimeout(function() {
        history.go(-2);
    }, 5000);
    

    As for ‘go back two pages’, yes, it’ll work in pretty much all JS-supporting browsers, but it’s the kind of thing users are likely to find incredibly confusing. Are you sure you want to do that?

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

Sidebar

Related Questions

I'm not even sure what title to give this question; hopefully the code will
Pretty much what the title says really. We have some code that is .NET
Like the title says, I'm looking for an HMAC-SHA1 implementation for C#. This will
As the title says, I am currently implementing the below code (well about to),
title pretty much says it all. I have a website which will only run
As the title says, I'm not clear on when such a subroutine will be
As the title says, I'm trying to create a UIImage that will go inside
Title says all. Sample code: ArrayList<HashMap<String, Object>> data = new ArrayList<HashMap<String, Object>>(); HashMap<String, Object>
As title says, I have a list of words, Like stopWords = [the, and,
As title says, I have access to the current listitem - and it's easy

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.