X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM normalize() Method

Element Object Reference Element Object

Example

Normalize an element:

document.getElementById("demo").normalize();

Try it yourself »


Definition and Usage

The normalize() method removes empty Text nodes, and joins adjacent Text nodes.


Browser Support

Method
normalize() Yes Yes Yes Yes Yes


Syntax

node.normalize()

Parameters

None

Technical Details

Return Value: No return value
DOM Version Core Level 2 Node Object


Related Pages

HTML DOM Reference: document.normalize()


Element Object Reference Element Object


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook