⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tu6.2.htm

📁 一部非常好的javaScript教程
💻 HTM
字号:
<HTML>
<HEAD>
<TITLE>使用 form 对象的属性</TITLE>
<SCRIPT LANGUAGE = JavaScript TYPE="text/javascript">
<!--
function show()
{
newWin=window.open("","","height=300,width=450")
newWin.document.write("文档中的表单信息如下:<P>");
newWin.document.write("<UL>")
newWin.document.write("<LI>action="+document.form1.action+"</LI>");
newWin.document.write("<LI>encoding="+document.form1.encoding+"</LI>");
newWin.document.write("<LI>length="+document.form1.length+"</LI>");
newWin.document.write("<LI>method="+document.form1.method+"</LI>");
newWin.document.write("<LI>name="+document.form1.name+"</LI>");
newWin.document.write("<LI>target="+document.form1.target+"</LI>");
newWin.document.write("</UL>")
return false;  //使 onSumit 的值为 false,则不执行 action 指定的动作。
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<FORM action="http://www.test.com/bin/process.asp"
      method=POST
      name="form1"
      target="_top"
      onReset="alert('您单击了重置按钮')"
      onSubmit="return show()">
  <H3 align=center>单击提交按钮显示有关的表单信息:</H3>
  姓名:<INPUT><BR>
  年龄:<INPUT><P>
  <INPUT type=submit name="button2" value="提交">
  <INPUT type=reset name="button3" value="重置">
</FORM>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -