Share via


IHTMLAreaElement interface

Specifies the shape of a hot spot in a client-side image map.

Members

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

  • Methods
  • Properties

Methods

The IHTMLAreaElement interface has these methods.

Method Description
blur

Causes the element to lose focus and fires the HTMLFrameSiteEvents::onblur event.

focus

Causes the element to receive the focus and executes the code specified by the HTMLFrameSiteEvents::onfocus event.

 

Properties

The IHTMLAreaElement interface has these properties.

Property Description

alt

Sets or retrieves a text alternative to the graphic.

coords

Sets or retrieves the coordinates of the object.

hash

Sets or retrieves the subsection of the IHTMLAreaElement::href property that follows the number sign (#).

host

Sets or retrieves the IHTMLAreaElement::hostname and IHTMLAreaElement::port number of the location or URL.

hostname

Sets or retrieves the host name part of the location or URL.

href

Sets or retrieves a destination URL or an anchor point.

noHref

Sets or gets whether clicks in this region cause action.

onblur

Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::onblur event.

onfocus

Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::onfocus event.

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.

search

Sets or retrieves the substring of the IHTMLLocation::href property that follows the question mark.

shape

Sets or retrieves the shape of the object.

tabIndex

Sets or retrieves the index that defines the tab order for the object.

target

Sets or retrieves the window or frame at which to target content.

 

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch