B
Badass Scotsman
Hello,
I have an application which should never allow the back button to be pushed
without refreshing the previous page. For example:
Step 1:
User fills in form.html and presses submit
Step 2:
User see's results.html and clicks back to amend form
Step 3:
form.html MUST REFRESH ONCE and only once, which will do a few things on my
server before reloading the page.
Step 4:
After refresh, the page should SCROLL to the top of the page automatically
Pseudo Style:
If window.history.forward(1) exists
then
refresh this page and scroll to top
else
do nothing
I wonder if the following script can be modified to achieve my goal:
<script language="JavaScript"><!--
javascript:window.history.forward(1);
//--></script>
Any help greatly appreciated.
Badass.
I have an application which should never allow the back button to be pushed
without refreshing the previous page. For example:
Step 1:
User fills in form.html and presses submit
Step 2:
User see's results.html and clicks back to amend form
Step 3:
form.html MUST REFRESH ONCE and only once, which will do a few things on my
server before reloading the page.
Step 4:
After refresh, the page should SCROLL to the top of the page automatically
Pseudo Style:
If window.history.forward(1) exists
then
refresh this page and scroll to top
else
do nothing
I wonder if the following script can be modified to achieve my goal:
<script language="JavaScript"><!--
javascript:window.history.forward(1);
//--></script>
Any help greatly appreciated.
Badass.