Avatar of Aleks
Aleks
Flag for United States of America

asked on 

JS to redirect to prev page

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>

Open in new window


but that is harcoded to redirect to that page, and what I need is to redirect to the previous page instead.
Web DevelopmentASPJavaScript

Avatar of undefined
Last Comment
HainKurt

8/22/2022 - Mon