Difference between revisions of "HTML DOM Document Object Methods"
From OdleWiki
(Created page with "Category:JavaScript {| class="wikitable" |- | style="width: 175px;" | '''<code>close()</code>''' || Closes a new document that was created with the <code>open()</code> me...") |
|||
Line 3: | Line 3: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | | style="width: | + | | style="width: 250px;" | '''<code>close()</code>''' || Closes a new document that was created with the <code>open()</code> method. |
|- | |- | ||
| '''<code>getElementById(''ID'')</code>''' || Returns the element represented by ''ID''. | | '''<code>getElementById(''ID'')</code>''' || Returns the element represented by ''ID''. |
Latest revision as of 19:49, 4 February 2013
close() |
Closes a new document that was created with the open() method.
|
getElementById(ID) |
Returns the element represented by ID. |
getElementsByName(name) |
Returns a collections of elements represented by name. |
getElementsByTagName(tag name) |
Returns a collection of elements represented by tag name. |
open() |
Opens a new document in a window or frame. |
write(text) |
Writes new text to a document. |
writeln(text) |
Writes new text to a document, followed by a line break.' |