This wiki is for the exclusive use of my friends and colleagues. Account creation and anonymous editing have been turned off.

If you are a friend or colleague of mine, and would like to participate in this project, please send me a message.

If you find these pages useful, please donate to help cover server costs. Thanks!

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: 175px;" | '''<code>close()</code>''' || Closes a new document that was created with the <code>open()</code> method.
+
| 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.'