摘要: 先看以下页面:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml& 阅读全文
posted @ 2010-02-26 21:22 Fskjb 阅读(2178) 评论(1) 推荐(0) 编辑
摘要: 上篇文章(DOM中获得对象的方法)中提到document的三个方法:getElementById(),getElementsByName() ,getElementsByTagName() .在该文中再来看看document对象的其他方法:write()方法:该方法用于向文档写入 HTML 表达式或文本。代码Code highlighting produced by Actipro CodeHig... 阅读全文
posted @ 2010-02-26 20:16 Fskjb 阅读(1249) 评论(0) 推荐(0) 编辑
摘要: Document 对象每个载入浏览器的 HTML 文档都会成为 Document 对象。Document 对象使我们可以从脚本中对 HTML 页面中的所有元素进行访问。提示:Document 对象是 Window 对象的一部分,可通过 window.document 属性对其进行访问。在document对象中有以下三个方法,对于程序员来说,真可谓无人不知,无人不晓,他们分别是:1.getElementById() 返回对拥有指定 id 的第一个对象的引用。2.getElementsByName() 返回带有指定名称的对象集合。3.getElementsByTagName() 返回带有指定标签名 阅读全文
posted @ 2010-02-26 19:33 Fskjb 阅读(4757) 评论(0) 推荐(0) 编辑
年年行好运