1.å¨è¶
é¾æ¥ä¸å¨ <a herf= "# " onClick= "clickScript() ">
clickScript(){
document.form1.action= "jspname.jsp?key= "+document.form1.valtext.value;
document.form1.submit();
}2.å¨æé®ä¸<script language = âjavascriptâ> function GetLoginID(){ var LoginID = document.form1.btnName.value; //第ä¸ç§ window.location = âjspname?key =â+LoginID; //第äºç§ // document.form1.action= "jspname.jsp?key= "+LoginID;}</script>
温馨提示:答案为网友推荐,仅供参考