Create an EntityReference for &
The result will be:
The createEnityReference() method creates the specified EntityRerence Object.
Note: This method is intended for XML and will not work for HTML documents.
![]()
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.
| Parameter | Type | Description |
|---|---|---|
| entityname | String | The name of the entity reference you want to create |
| Type | Description |
|---|---|
| EntityReference object | The created EnityReference node |
| DOM Version | Core Level 1 |
|---|
Your message has been sent to W3Schools.