DOMParser()

Jump to:

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.

Document Tags and Contributors

Contributors to this page: mdnwebdocs-bot, NotWoods
Last updated by: mdnwebdocs-bot,