Mega Code Archive
Categories
/
JavaScript Reference
/
Javascript Properties
Href Syntax and Note
Note: Read and write property. For the
, this property specifies the anchor point of the URL.
, and
elements, -------------------------------------------------------------------------------------- For the
element, it establishes a default URL for relative links. -------------------------------------------------------------------------------------- For the location object, it specifies the entire URL. -------------------------------------------------------------------------------------- For the styleSheet object, it specifies the URL of the linked style sheet. Syntax: document.getElementById("elementID").href = value document.all.elementID.href = value // IE only