<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> <script type="text/javascript"> <!-- function validate() { var flag=true; var temp=document.getElementById("form1").action; //var temp=document.form1.action; //var temp=document.form[0].action;// ff不通过 //var temp=document.all.form[0].action;// ff不通过 alert(temp); return flag; } //--> </script> </head> <body> <form id="form1" name="form1" method="post" action="2.html" οnsubmit="return validate();" > <p> <input type="submit" name="submit" id="submit" value="登陆" /> </p> </form> </body> </html>
form表单的action
最新推荐文章于 2021-07-22 21:37:08 发布