Defines the properties and methods inherited by objects in the HTMLAnchorElement prototype chain.
Syntax
| HTML | N/A |
|---|
| Scripting | HTMLAnchorElement.prototype |
|---|
Members Table
The following table lists the members exposed by the
HTMLAnchorElement Constructor
object.
Attributes/Properties
| Attribute | Property | Description |
|---|
| CHARSET | charset |
Gets or sets the character set used to encode the object. |
| COORDS | coords |
Sets or retrieves the coordinates of the object. |
| DATAFLD | dataFld |
Sets or retrieves a field of a given data source, as specified by the dataSrc property, to bind to the specified object. |
| DATASRC | dataSrc |
Sets or retrieves the source of the data for data binding. |
| hash |
Sets or retrieves the subsection of the href property that follows the number sign (#). |
| host |
Sets or retrieves the hostname and port number of the location or URL. |
| hostname |
Sets or retrieves the host name part of the location or URL. |
| HREF | href |
Sets or retrieves a destination URL or an anchor point. |
| HREFLANG | hreflang |
Gets or sets the language code of the object. |
| METHODS | Methods |
Sets or gets the list of HTTP methods supported by the object. |
| NAME | name |
Gets or sets the name of the object. |
| nameProp |
Retrieves the file name specified in the href or src property of the object. |
| pathname |
Sets or retrieves the file name or path specified by the object. |
| port |
Sets or retrieves the port number associated with a URL. |
| protocol |
Sets or retrieves the protocol portion of a URL. |
| REL | rel |
Sets or retrieves the relationship between the object and the destination of the link. |
| REV | rev |
Sets or retrieves the relationship between the object and the destination of the link. |
| search |
Sets or retrieves the substring of the href property that follows the question mark. |
| SHAPE | shape |
Gets or sets the shape of the object. |
| TARGET | target |
Sets or retrieves the window or frame at which to target content. |
| TYPE | type |
Gets or sets the MIME type of the object. |
| URN | urn |
Sets or gets a Uniform Resource Name (URN) for a target document. |
Remarks
For more information on this and other DOM Prototypes
,
see
Document Object Model Prototypes, Part 1: Introduction.
This prototype derives from the
Element Constructor.
Applies To
See Also