noHref Property

Microsoft FrontPage Visual Basic

noHref Property

Returns or sets a Boolean that represents whether an AREA element causes a click event. False indicates that the AREA element does not cause a click event. Corresponds to the nohref attribute.

expression.noHref

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

The following example removes the href attribute for the first AREA element in the first MAP element in the active document and then inserts the nohref attribute.

    Dim objMap As FPHTMLMapElement
Dim objArea As FPHTMLAreaElement

Set objMap = ActiveDocument.all.tags("map").Item(0)
Set objArea = objMap.areas.Item(0)

objArea.removeAttribute "href"
objArea.noHref = True