troubleshooting Question

JS to redirect to prev page

Avatar of Aleks
AleksFlag for United States of America asked on
Web DevelopmentASPJavaScript
8 Comments1 Solution216 ViewsLast Modified:
I have a page with a stored procedure which is called by different pages.

I want to be able to redirect from that SP page to the page that called the procedure. Whichever is the previous page.

I currently have my SP then at the bottom of the page the following code:

<script language="javascript">
window.location.href="default.asp";
</script>

but that is harcoded to redirect to that page, and what I need is to redirect to the previous page instead.
ASKER CERTIFIED SOLUTION
HainKurt
Sr. System Analyst

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros