Click to Rate and Give Feedback
MSDN
MSDN Library
HTMLAnchorElement Prototype

Defines the properties and methods inherited by objects in the HTMLAnchorElement prototype chain.

Syntax

HTMLN/A
ScriptingHTMLAnchorElement.prototype

Members Table

The following table lists the members exposed by the HTMLAnchorElement Constructor object.

Attributes/Properties

AttributePropertyDescription
CHARSETcharset Gets or sets the character set used to encode the object.
COORDScoords Sets or retrieves the coordinates of the object.
DATAFLDdataFld Sets or retrieves a field of a given data source, as specified by the dataSrc property, to bind to the specified object.
DATASRCdataSrc 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.
HREFhref Sets or retrieves a destination URL or an anchor point.
HREFLANGhreflang Gets or sets the language code of the object.
METHODSMethods Sets or gets the list of HTTP methods supported by the object.
NAMEname 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.
RELrel Sets or retrieves the relationship between the object and the destination of the link.
REVrev 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.
SHAPEshape Gets or sets the shape of the object.
TARGETtarget Sets or retrieves the window or frame at which to target content.
TYPEtype Gets or sets the MIME type of the object.
URNurn 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

A

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker