How do I redirect users after submit button click?

后端 未结 7 2263
悲哀的现实
悲哀的现实 2020-12-10 04:55

How do I redirect users after submit button click? My javascript isn\'t working:

Javascript



        
相关标签:
7条回答
  • 2020-12-10 05:28

    I hope this might be helpful

    <script type="text/javascript">
    	function redirect() {
    		document.getElementById("formid").submit();
    	}
    	window.onload = redirect;
    </script>
    <form id="formid" method="post" action="anypage.jsp">
      .........
    </form>

    0 讨论(0)
提交回复
热议问题