日期:2014-05-19 浏览次数:20765 次
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>user Add</title> <meta name="Description" content=""> </head> <script type="text/javascript"> <!-- function submit() { var username = document.getElementById("username").value; var password = document.getElementById("password").value; window.location.href="/TextServlet?username="+username+"&password="+password; //如果frame有main,那么就是 top.location="/TextServlet?username="+username+"&password="+password; } //--> </script> <body> <div> Username:<input type="text" name="username"/> </div> <div> Password : <input type="password" name="password" /> </div> <input type="button" value="提交" onclick ="submit()"/> </form> </body> </html>