A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
How to go back one page in the browser history using JavaScript |
On Friday, March 17th 2006 at 02:48 PM By Andrew Pociu (View Profile) ![]() ![]() ![]() ![]() (Rated 4.5 with 15 votes) |
||
Using JavaScript you can go back or forward in the browser's navigation history. Most of the time you want to go back one page by clicking a link in the page. For doing that, use the following code:
It's easy to figure out that to go back more pages in history, you use a different negative number (-2, -3, -4, etc.). To go forward you use a positive number (1, 2, 3, etc.); in the example below we go one page forward in the browser's history:
|
|||
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|||
|
|||
Current Commentsnice, didn't knew that one yet
thx ;)
Don't you mean "Go Forward" in the second example?
Yes, I did, thanks for pointing that out. It\'s now fixed.
6
Multumesc. :)
No
this is really useful....
Thanks very much!
really simple and working as well
Thanks Alot
Mind Blowing . . .
I have one requirement,
Is it possible to go back to a perticular page by using its any property identification?
Thanks
Gurunath
How do I make It go back to same location on page ???
How do I make It go back to same location on page ???
This great but not working in Google chrome and some versions of mozila
That's great , but if we have tab option in my page and one tab decalre the pop up then it will not work?
ytuu
Thanks Alot
thank u very much!
you have solved my big problem.
Walla Walla kya karti
Walla Walla kya karti
goood
Related Knowledge Base Articles
Related Source Code
Related Tutorials
JavaScript Job Search