`
chenzihong_cyd
  • 浏览: 16003 次
  • 性别: Icon_minigender_1
  • 来自: 昆明
社区版块
存档分类
最新评论
  • a90830: 兄弟,十分感谢!  您帮到我了  我跟你的情况一模一样,我也写 ...
    tapestry

document.forms[0],与 document.forms["fromname"]

 
阅读更多
document.forms[0]就是在页面里出现的第一个form标签

document文档
document.forms[0]文档中的第一个表单
document.forms[0].title文档中的第一个表单的title表单
document.forms[0].title.value文档中的第一个表单的title表单的内容


var frm = document.forms["joinForm"];
frm.action="<%=path%>/admin/Join.do";
frm.joinId.value =joinId;
if(!confirm("确定此信息是真实的信息?")) {
   return false;
}     
frm.submit();
return false;  

分享到:
评论

相关推荐

    Ajax_实现级联菜单

    if (document.forms.LevelMenu.select1.selectedIndex == 0) { // 当一级菜单未被选中时,二级菜单保持初始状态 document.forms.LevelMenu.select2.length = 1; return; } if (!cache[document.forms....

    js中常用函数.doc

    console.log("Forms: " + document.forms.length + ", Anchors: " + document.anchors.length + ", Links: " + document.links.length); ``` **18. `document.onmousedown` 和 `document.ondblclick`** - **功能...

    hyperapp-forms:3KB Hyperapp表单状态管理库

    import forms from 'hyperapp-forms' ;. .const actions = { . . ... forms ,} ;. .app ( state , actions , view , document . body ) ;现场组件用Field装饰器包装输入组件。 Textbox.js import { h } from '...

    The way to go

    go程序设计语言 Contents Preface................................................................................................................................. xix PART 1—WHY LEARN GO—GETTING ...

    from表单新窗口打开并提交

    newWindow.document.forms[0].submit(); // 提交新窗口中的表单 }); ``` 以上代码展示了如何使用JavaScript控制表单在新窗口中打开并提交。 总结一下,"from表单新窗口打开并提交"涉及的关键知识点包括:HTML表单...

    [Go语言入门(含源码)] The Way to Go (with source code)

    The Way to Go,: A Thorough Introduction to the Go Programming Language 英文书籍,已Cross the wall,从Google获得书中源代码,分享一下。喜欢请购买正版。 目录如下: Contents Preface......................

    django实现MODELFORM文件上传范例

    from .models import Document class DocumentForm(forms.ModelForm): class Meta: model = Document fields = ['title', 'file'] ``` 这个ModelForm会自动生成对应的表单字段,包括`title`和`file`,并包含了...

    Accusoft FormSuite 3.0 for .Net_SN

    Recognize incoming scanned forms from your master form library. Drop out the forms and extract fields of hand-printed text, typed text, check marks or bubble marks. Perform OCR, ICR, or OMR on the ...

    设计与制作(登陆界面).

    var username = document.forms["form1"]["username"].value; if (username == "") { alert("请输入用户名!"); return false; } var password = document.forms["form1"]["password"].value; if (password =...

    jsp连接mysql数据库登录

    var username = document.forms["login"]["username"].value; var password = document.forms["login"]["password"].value; if (username == "" || password == "") { alert("用户名和密码不能为空"); return ...

    jquery-django-form-源码.rar

    from django import forms class UserForm(forms.Form): username = forms.CharField(max_length=30) email = forms.EmailField() ``` 在HTML模板中,我们可以使用Django模板语言(DTL)来渲染这些表单字段,...

    VB.NET打印预览、页面设置程序实例.txt

    PrintPreviewControl1.Name = "PrintPreviewControl1" PrintPreviewControl1.Dock = DockStyle.Fill PrintPreviewControl1.Document = PrintDocument1 PrintPreviewControl1.UseAntiAlias = True AddHandler ...

    修改表结构的 asp C# 源代码

    + '\n' +' if(o.fieldName.value.length==0){alert("请输入字段名");o.fieldName.focus();return false;}' + '\n' +' if(!checkInput(o.fieldName.value)){alert("名称中包含非法字符,请重新输入");return false;...

    ASP.NET常用代码

    string deleteCmd = "DELETE from Employee where emp_id = " + intEmpID.ToString() 4.删除表格记录警告 private void DataGrid_ItemCreated(Object sender,DataGridItemEventArgs e) { switch(e.Item.ItemType) {...

    C#程序开发中经常遇到的10条实用的代码

    Console.WriteLine("Machine: {0}", Environment.MachineName); Console.WriteLine("# of processors (logical): {0}", Environment.ProcessorCount); Console.WriteLine("# of processors (physical): {0}", ...

    winform读取pdf

    printDoc.DocumentName = "PDF Document"; printDoc.PrintPage += new PrintPageEventHandler(PrintPageHandler); printDoc.Print(); } private void PrintPageHandler(object sender, PrintPageEventArgs ev) {...

    C#通过xml配置文件自动生成菜单

    ToolStripMenuItem menuItem = new ToolStripMenuItem(name, Image.FromFile(icon)); formMenuStrip.Items.Add(menuItem); foreach (XmlNode subNode in node.SelectNodes("subMenuItem")) { string subName = ...

    ajax登陆验证方法[归类].pdf

    SqlCommand cmd = new SqlCommand("select count(*) from comm_users where userid='" + userid + "' and password='" + encoding(userpwd) + "'", con); int count = Convert.ToInt32(cmd.ExecuteScalar()); if ...

    C#读取XML文件内容并以列表方式显示

    为了将数据以列表形式显示,你可以使用`System.Windows.Forms.ListView`控件(在Windows Forms应用程序中)或`System.Web.UI.WebControls.ListView`控件(在ASP.NET Web应用程序中)。这些控件允许你自定义列和行...

Global site tag (gtag.js) - Google Analytics