/

HTML / CSS / JavaScript Tutorial

JavaScript Document own method: normalize()

[this page | pdf | back links]

The normalize() method (when applied to the document object of 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.

 

document.normalize()

 

It can also be applied to any node within the document using e.g. node.normalize().

 


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


Desktop view | Switch to Mobile