We help IT Professionals succeed at work.

Javascrript Submit then automatic back

madmare
madmare asked
on
Medium Priority
248 Views
Last Modified: 2012-04-11
Hello Experts,
 how do I improve my code to go back ( to blank page) after the Submit.

<html>
  <body>< TABLE  >  <TR> <TD  >
    <form name="LTXParameters" method="post" action="http://crmdev1.metalabc.com/zhp_in/va01.htm
l=X" >
<input type=hidden name="CUSROMER_ID"value="0000101370">
    </form>
 </TD></TR> </TABLE>
  </body>
</html>
<script> document.LTXParameters.submit(); 

</script>
</HTML>

Open in new window

Comment
Watch Question

Multitechnician
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
could you do some changes on
va01.html

Open in new window

?

http://www.w3schools.com/jsref/met_his_back.asp

Author

Commented:
the back command dos't work after submit

can you please to help via my code ?

 thanks again

Author

Commented:
yes i can make changes in the file
leakim971Multitechnician
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
so just take a look to the link provided :)

Author

Commented:
I tried it
 i put the "back" command in my file after the "submit" command

 but no "back" was done

Thanks
leakim971Multitechnician
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
I know only this way to go back from an other page... sorry.
Please wait help of others experts.
Top Expert 2013

Commented:
i put the "back" command in my file after the "submit" command

The submit effectively ends the relationship between the page and the browser.  and code after the the submit will not get executed.

You have to code any re-direction on the server side.


Cd&

Explore More ContentExplore courses, solutions, and other research materials related to this topic.