JS、jqueryie6浏览器下使用js无法提交表单的解决办法

-----------------------JS、jqueryie6浏览器下使用js无法提交表单的解决办法--------------------------------------------------

----------------jsp----------------------------------------------------------------------------

<form action="" id="frmmsgBoardCheck" method="post">

<a class="anextpage" href="javascript:formSub()">测试</a>

</form>

-----------------js----------------------------------------------------------------------------

 function formSub(){  

 var url = "userInfoMgrAction!getUserInfo";

  document.getElementById("frmmsgBoardCheck").setAttribute("action", url);

  document.getElementById("frmmsgBoardCheck").submit();

}

posted on 2013-07-17 19:51  qgc  阅读(310)  评论(0编辑  收藏  举报

导航