/

HTML / CSS / JavaScript Tutorial

JavaScript DOM HTML method: normalize()

[this page | pdf | back links]

The normalize() method (when applied to HTML elements in the JavaScript DOM) removes empty text nodes and joins adjacent text nodes.

 

It has the following syntax with no parameters. It does not return a value.

 

element.normalize()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile