Solved

Javascrript Submit then automatic back

Posted on 2012-03-12
7
193 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

0
Comment
Question by:madmare
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 37709424
could you do some changes on
va01.html

Open in new window

?

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

Author Comment

by:madmare
ID: 37709431
the back command dos't work after submit

can you please to help via my code ?

 thanks again
0
 

Author Comment

by:madmare
ID: 37709445
yes i can make changes in the file
0
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 
LVL 82

Expert Comment

by:leakim971
ID: 37709550
so just take a look to the link provided :)
0
 

Author Comment

by:madmare
ID: 37709591
I tried it
 i put the "back" command in my file after the "submit" command

 but no "back" was done

Thanks
0
 
LVL 82

Expert Comment

by:leakim971
ID: 37709603
I know only this way to go back from an other page... sorry.
Please wait help of others experts.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 37711049
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&
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

691 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