Share via


IHTMLLinkElement interface

This interface provides methods to access a link element that is used to specify a link to an external document.

Members

The IHTMLLinkElement interface inherits from the IDispatch interface. IHTMLLinkElement also has these types of members:

  • Properties

Properties

The IHTMLLinkElement interface has these properties.

Property Description

disabled

Sets or retrieves a value that indicates whether the user can interact with the object.

href

Sets or retrieves a destination URL or an anchor point.

media

Sets or retrieves the media type.

onload

Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::onload event. The HTMLFrameSiteEvents::onload event occurs immediately after the browser loads the object.

readyState

Retrieves a value that indicates the current state of the object.

rel

Sets or retrieves the relationship between the object and the destination of the link.

rev

Sets or retrieves the relationship between the object and the destination of the link.

styleSheet

Note  For the style element, IHTMLLinkElement::styleSheet is no longer supported. Starting with IE11, use IHTMLLinkElement5::sheet. For info, see Compatibility changes.
 

Retrieves an interface pointer that provides access to the style sheet object's properties and methods.

type

Sets or retrieves the MIME type of the object.

 

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch

Reference

IHTMLLinkElement2

IHTMLLinkElement3