getElementsByName

Document 对象方法

方法 描述
close() 关闭用 document.open() 方法打开的输出流,并显示选定的数据。
getElementById() 返回对拥有指定 id 的第一个对象的引用。
getElementsByName() 返回带有指定名称的对象集合。
getElementsByTagName() 返回带有指定标签名的对象集合。
open() 打开一个流,以收集来自任何 document.write() 或 document.writeln() 方法的输出。
write() 向文档写 HTML 表达式 或 JavaScript 代码。
writeln() 等同于 write() 方法,不同的是在每个表达式之后写一个换行符。

Document 对象描述

HTMLDocument 接口对 DOM Document 接口进行了扩展,定义 HTML 专用的属性和方法。

很多属性和方法都是 HTMLCollection 对象(实际上是可以用数组或名称索引的只读数组),其中保存了对锚、表单、链接以及其他可脚本元素的引用。

这些集合属性都源自于 0 级 DOM。它们已经被 Document.getElementsByTagName() 所取代,但是仍然常常使用,因为他们很方便。

write() 方法值得注意,在文档载入和解析的时候,它允许一个脚本向文档中插入动态生成的内容。

注意,在 1 级 DOM 中,HTMLDocument 定义了一个名为 getElementById() 的非常有用的方法。在 2 级 DOM 中,该方法已经被转移到了 Document 接口,它现在由 HTMLDocument 继承而不是由它定义了。

“getElementsByName”的3,134个回复

  1. I have to express some thanks to this writer for rescuing me from this type of trouble. Just after searching through the the web and obtaining advice which were not productive, I assumed my entire life was over. Existing without the presence of solutions to the problems you’ve resolved by means of your posting is a crucial case, and ones that could have in a negative way damaged my entire career if I had not encountered the blog. The understanding and kindness in playing with all the pieces was tremendous. I am not sure what I would have done if I hadn’t encountered such a subject like this. I can also at this moment look forward to my future. Thank you so much for your high quality and result oriented guide. I won’t hesitate to refer the website to any person who should receive assistance about this situation.

  2. Thank you for every one of your labor on this web page. My niece really loves making time for internet research and it’s easy to see why. All of us hear all concerning the powerful method you make precious items on this web site and as well as welcome participation from visitors on that concern plus our favorite girl is actually understanding so much. Take advantage of the remaining portion of the new year. You are carrying out a remarkable job.

  3. I’m writing to let you understand what a awesome encounter my girl developed studying your web site. She noticed a good number of issues, most notably how it is like to possess an excellent teaching style to let the others quite simply gain knowledge of some very confusing subject areas. You actually surpassed our desires. Thank you for offering these good, healthy, revealing and also cool tips about the topic to Ethel.

  4. I would like to express some thanks to you just for rescuing me from this particular crisis. After exploring throughout the online world and meeting solutions which are not pleasant, I was thinking my life was done. Living minus the solutions to the issues you’ve solved as a result of your entire guide is a serious case, as well as the kind which might have badly damaged my entire career if I hadn’t encountered the website. The expertise and kindness in handling all areas was very helpful. I’m not sure what I would have done if I had not discovered such a point like this. I can also at this time relish my future. Thanks so much for this expert and result oriented guide. I will not think twice to endorse your blog post to anyone who desires recommendations on this subject matter.

  5. Pingback: online viagra
  6. Pingback: buy viagra now
  7. Pingback: generic viagra online
  8. Pingback: order viagra online
  9. Hello there! I could have sworn I’ve visited this website before but after looking at a few of the posts I realized it’s new to me. Regardless, I’m certainly happy I stumbled upon it and I’ll be bookmarking it and checking back regularly!

  10. My coder is trying to convince me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using Movable-type on a variety of websites for about a year and am nervous about switching to another platform. I have heard good things about blogengine.net. Is there a way I can transfer all my wordpress posts into it? Any kind of help would be greatly appreciated!

  11. Pingback: generic viagra canada
  12. Does your website have a contact page? I’m having trouble locating it but, I’d like to shoot you an email. I’ve got some recommendations for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it improve over time.

  13. I’ve been surfing online more than 3 hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. In my opinion, if all website owners and bloggers made good content as you did, the net will be much more useful than ever before.

  14. Pingback: buy viagra australia
  15. Pingback: viagra samples
  16. Pingback: cialis 20mg
  17. Heya i am for the first time here. I came across this board and I find It truly useful & it helped me out a lot. I hope to give something back and help others like you helped me.

  18. Hello, I do believe your web site could possibly be having internet browser compatibility issues. Whenever I take a look at your blog in Safari, it looks fine however when opening in IE, it has some overlapping issues. I just wanted to give you a quick heads up! Aside from that, excellent site!

  19. Howdy just wanted to give you a quick heads up. The words in your content seem to be running off the screen in Safari. I’m not sure if this is a format issue or something to do with browser compatibility but I figured I’d post to let you know. The design and style look great though! Hope you get the problem fixed soon. Cheers

  20. I am curious to find out what blog platform you are utilizing? I’m having some small security issues with my latest site and I would like to find something more risk-free. Do you have any recommendations?

  21. Pingback: discount cialis
  22. Pingback: buy Viagra 50 mg
  23. Compose more, thats altogether I get to pronounce. Literally, it seems as though you relied on the video recording to hit your item.

    You in spades do it what youre talk about, why wasteland your intelligence on hardly mailing videos to your blog when you could be
    big us something enlightening to learn? http://www.stdstory.com/

  24. Pingback: viagra
  25. Pingback: cialis price
  26. Hi, I do think this is a great blog. I stumbledupon it 😉 I am going to revisit yet again since I book marked it. Money and freedom is the best way to change, may you be rich and continue to guide others.

  27. Pingback: Cialis 60 mg tablet
  28. I am extremely inspired with your writing talents and also with the layout in your weblog. Is that this a paid subject matter or did you customize it your self? Either way stay up the excellent high quality writing, it’s uncommon to see a nice blog like this one nowadays..

  29. Hey there just wanted to give you a quick heads up. The words in your content seem to be running off the screen in Chrome. I’m not sure if this is a format issue or something to do with browser compatibility but I figured I’d post to let you know. The design and style look great though! Hope you get the problem fixed soon. Thanks

  30. I’ve been browsing on-line more than three hours nowadays, but I by no means discovered any attention-grabbing article like yours. It is lovely price sufficient for me. Personally, if all website owners and bloggers made good content material as you did, the internet shall be a lot more useful than ever before.

  31. Pingback: rxtrustpharm.com
  32. Pingback: where to buy viagra
  33. Hi, I do think this is an excellent web site. I stumbledupon it 😉 I will revisit yet again since I bookmarked it. Money and freedom is the best way to change, may you be rich and continue to guide others.

  34. Pingback: generic cialis
  35. Pingback: levitra 60 mg usa
  36. Pingback: lexapro 5 mg uk
  37. Pingback: where to buy viagra
  38. Pingback: buy generic viagra
  39. Hey there just wanted to give you a quick heads up. The words in your article seem to be running off the screen in Internet explorer. I’m not sure if this is a format issue or something to do with browser compatibility but I figured I’d post to let you know. The style and design look great though! Hope you get the issue resolved soon. Kudos

  40. I leave a leave a response each time I appreciate a post on a site or if I have something to contribute to the discussion. It is caused by the fire displayed in the article I read. And on this post CF Colors v 2.1, Post Formats Admin UI v1.3.1, and Social v2.10 : alexking.org. I was excited enough to post a commenta response 😉 I actually do have a couple of questions for you if you tend not to mind. Could it be simply me or does it give the impression like some of the remarks appear as if they are written by brain dead people? 😛 And, if you are posting at other online social sites, I would like to follow you. Would you list all of all your social sites like your linkedin profile, Facebook page or twitter feed?

  41. Pingback: cialis generic