Easy Tutorial
❮ Met Canvas Createlineargradient Jsref Lastindexof ❯

HTML DOM importNode() Method

Document Object

Example

Return the first H1 element from an iframe:


Definition and Usage

The importNode() method copies a node from another document to this document for use.

The imported node can be of any node type.

If the second value is set to true, all descendant nodes of the node are also copied.


Browser Support

All major browsers support the importNode() method.

Note: Internet Explorer 8 and earlier versions do not support this method.


Syntax

Parameters

Parameter Type Description
deep Boolean Required. If true, also recursively copy all descendant nodes of the importedNode.

Return Value

Type Description
Node object The imported node

Technical Details

| DOM Version | Core Level 2 Document Object | | --- | --- |


Document Object

❮ Met Canvas Createlineargradient Jsref Lastindexof ❯