DOMParser()

The DOMParser() constructor creates a new DOMParser object.

Syntax

var parser = new DOMParser();

Parameters

None.

Return Value

A new DOMParser object. This object can be used to parse the text of a document using the parseFromString() method.