Redirect To A New Page


<script type="text/JavaScript">
	window.location = "http://www.mydomain.com"
</script>";

Redirect With POST Data Using A Hidden Form

Include the hidden form with the values you want to send on the page:


<!-- ----------------------------------------------- -->
<!-- HIDDEN FORM AUTO SUBMITTED ON UPLOAD COMPLETION -->
<!-- ----------------------------------------------- -->
<form id="form_upload_complete" name="form_upload_complete" method="post" action="http://www.mydomain.com/successful_upload.php">
   <input type="hidden" name="field1" value="some value" />
   <!-- etc... -->
</form>

Then in your javascript use


document.forms["form_upload_complete"].submit();

Go Back To Previous Page


history.go(-1);
UK Electronic Designer
USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published.