THE WORLD'S LARGEST WEB DEVELOPER SITE

DOM Document createEntityReference Method

Document Object Reference Document Object

Example

Create an EntityReference for &

xmlDoc.createEntityReference("amp");

The result will be:

&

Definition and Usage

The createEnityReference() method creates the specified EntityRerence Object.

Note: This method is intended for XML and will not work for HTML documents.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The createEnityReference() method is supported in all major browsers.

Note: This method is made for the XML DOM, and will not work for HTML documents.


Syntax

document.createEnityReference(entityname)

Parameters

Parameter Type Description
entityname String The name of the entity reference you want to create

Return Value

Type Description
EntityReference object The created EnityReference node

Technical Details

DOM Version Core Level 1

Document Object Reference Document Object


COLOR PICKER

colorpicker

SHARE THIS PAGE






Search w3schools.com:

Translate w3schools.com: