![]() |
VOOZH | about |
The normalize() method in HTML is used to merge the adjacent text nodes with the first text node and flush out the empty nodes. The normalize() method does not require any parameter.
Syntax:
node.normalize()
Example 1: In this example, we will use normalize() method.
Output:
Supported Browsers: The browser supported by DOM normalize() Method are listed below: