cleanair4me46
Technical User
I would like to automatically submit a form value everytime a page is viewed and then automatically redirect.
The below doesnt submit anything and I am not sure how to redirect. Please advise.
The below doesnt submit anything and I am not sure how to redirect. Please advise.
Code:
<SCRIPT LANGUAGE="JavaScript">
function fnSubmit() {
window.document.mypage.form.submit();
return;
}
</SCRIPT>
<body onload="fnSubmit()">
<form action="goToPage.jsp" name="mypage" method="post">
<input type="hidden" name="mydata" value="myvalue">
<input type="submit">
</form>