Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
JavaScript Tutorial
DOM Node 38 codes
Home
JavaScript Tutorial
DOM Node
1 Append an element to body
2 Append TextNode to an Element
3 Assign value to the innerText node
4 Change a Text in TextRange
5 Change hyperlink innerHTML
6 Change InnerHTML
7 Change the innerText
8 Clone contents of a range
9 Compare the end points of the text range
10 Create a TextNode
11 Create an element from document
12 Create Paragraph element and set the text
13 Extract Contents
14 Firefox only Node filter
15 Firefox only NodeIterator Example
16 Get element by id and change the innerHTML
17 Get element from a document by id
18 Get Elements by tag name and return an array of elements
19 Get elements parent node
20 Get first child from TreeWalker (Firefox only)
21 Get last child from TreeWalker
22 Get node name
23 Get node type
24 Get node value
25 Get outerText value for a tag (Firefox does not support the outerText )
26 InnerHTML of body element
27 InnerText and InnerHTML
28 Insert element before another element by using document body insertBefore
29 IsEqual and inRange of a text range
30 Move to element text in a text range
31 Paste HTML into a text range
32 Remove child element from body
33 Replace a child
34 Set outer Text (Firefox does not support the innerText property )
35 Set outerHTML (Firefox does not support the outerHTML )
36 Shows what happens when you try to use pasteHTML() while HTML code is selected
37 Use Array and for loop to add a list of text
38 Using DOM range