Solved

how can i use javascript  go back to the preview page

Posted on 2000-04-26
2
261 Views
Last Modified: 2012-08-13
can anyone show me how to use javascript to go back without press back botton on the browser
0
Comment
Question by:binary1
2 Comments
 
LVL 16

Expert Comment

by:Peter Kwan
Comment Utility
Hi binary1,

To go back n page(s), then
history.go(-n);

e.g. to go back one page, then
history.go(-1)

Hope this helps.

PKwan
0
 

Accepted Solution

by:
anilgosavi earned 10 total points
Comment Utility
use
this will return you to previous page.

history.back()
e.g
on click of the following hyperlink you can go back to previous page.
<html>
<body>
<br>
<a href="javascript:history.back();">
Go Back
</a>
</body>
</html>
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
using web browser with BING 40 84
Problem to picture file 3 38
Adding Extra Information box 4 24
Problem to page 4 17
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now