<title>this is a javascript programing wrote by zhou2003737 2012-8-20</title>
<script type="text/javascript">
function test(){
var f = document.getElementsByTagName("form")[0]
f.action=f.action+"id="+document.getElementById("input").value
alert(f.action)
}
</script>
<body>
<form action="ss.do?" method="get">
<input type="text" id ="input"/>
<input type="button" value="提交" onClick="test()">
</form >
</body>
</html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)