2013-12-27
展开全部
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>
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>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询