X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook