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.4 with 38 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
fdfd
how can interact with "Go back one page" button in address bar..pls help me ..
history.go(-1); is not working for me. I am using IE8. Any clues.
history.go(-1); is not working for me. I am using IE8. Any clues.
OMG!
BEST. CODE. EVER!
Thank you!
@Andrea, yeah, not really.
I will recommend not to wait until you get big sum of cash to order all you need! You can take the <a href="http://goodfinance-blog.com/topics/credit-loans">credit loans</a> or sba loan and feel yourself comfortable
Once you have recreated the problem and captured these steps, you can save them to a file and send it to your support person, who can then open it up and view
Related Knowledge Base Articles
Related Source Code
Related Tutorials
JavaScript Job SearchFrom the creators of Geekpedia, a revolutionary new coupon website!
BargainEZ has coupons codes, printable coupons, bargains and it is the leading source of Passbook coupons for iPhone and iPod touch devices.