How to get the previous URL after using window.history.back?

Let’s learn how to get the previous URL after using window.history.back. The most accurate or helpful solution is served by

There are ten answers to this question.

Best solution

How do you get the previous url in Javascript? - Stack ...

... alert("previous url is: " + window.history.previous.href); Is there something like that? ... Is there any way to get the previous url in javascript?

Other solutions


It's the other way around. Traffic costs the ISP. For a personal account, a certain amount of traffic...

Read more

Shishir Shah at Yahoo! Answers Mark as irrelevant Undo

How can I get the referrer URL when using Tornado as a web server?

For example  lets say I am running the "hello world" example from the tornado site.How can I get the referrer url?



Read more

Xin Liu at Quora Mark as irrelevant Undo

I've been using Mozilla Firefox 3.5.3 but recently I get the error "The URL you requested has been blocked".?

Previously I was using Windows Vista Home Premium (Service Pack 1) and I upgraded it to Service Pack 2. Since then then this error message keeps coming up so I can't use it anymore. I saw an answer to a similar problem here, on Yahoo Answers and I've...


It could be either Windows or your ISP blocking the website, eitehr because it is harmful or because...

Read more

aki at Yahoo! Answers Mark as irrelevant Undo

Using the keyboard, how do you get the cursor into the browser Mozilla Firefox's URL space?

This is a handy time and effort saver. I used to know the shortcut when using Internet Explorer, but somebody, Mozilla please!



Read more

Bangalore Buddy at Yahoo! Answers Mark as irrelevant Undo

What's the easiest way to get the URL fragment using JavaScript?

If I'm on the page , how can I get "frag" correctly and most easily?


window.location.hash seems to work.  I'm not certain yet if it works in all browsers.

Read more

Charlie Cheever at Quora Mark as irrelevant Undo


Press the wrench button on the far right of the browser, choose options. Click "Under the Hood...

Read more Mark as irrelevant Undo


You need to download a program called Favicon (search it on google) then design your icon and then favicon...

Read more

community wiki at Mark as irrelevant Undo


There is a data URI/URL scheme going on right now, perhaps this is part of it. Internet unfortunately...

Read more

Anonymous at ChaCha Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.