X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM normalize() Method

Element Object Reference Element Object

Example

normalize an element:

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

Try it yourself »


Definition and Usage

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


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The normalize() method is supported in all major browsers.


Syntax

node.normalize()

Parameters

None.

Return Value

No return value.

Technical Details

DOM Version Core Level 2 Node Object


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 FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook