<body> <form action="" id="form1" name="form1" method="post"> <label>姓名: <input type="text" name="textfield" /> </label> <p> <label>密码: <input type="passWord" id="password" name="textfield2" /> </label> </p> <input type="submit" name="Submit" value="查看密码和姓名" onclick="javascript:alert('姓名:'+form1.textfield.value+'/n 密码:'+form1.password.value);" /> </form></body>
新闻热点
疑难解答