Share via


FPHTMLAnchorElement Object

FPHTMLAnchorElement
Multiple objects

Represents a specified bookmark in a page. Bookmarks are represented by A elements that use the name attribute. See also IHTMLAnchorElement object.

Note    A elements that use the href attribute are links. For information about accessing links, see the FPHTMLLinkElement and IHTMLLinkElement objects.

Using the FPHTMLAnchorElement object

Use the anchors property to return an IHTMLElementCollection object that represents all the anchors in a document. Use the item method to return an FPHTMLAnchorElement object. The following example returns a String array containing the names of all the bookmarks in the specified document.

Function GetBookmarks(objDoc As FPHTMLDocument) As String()
    Dim strTemp() As String
    Dim intCount As Integer
    
    If objDoc.anchors.Length > 0 Then
        ReDim strTemp(objDoc.anchors.Length - 1)
        
        For intCount = 0 To objDoc.anchors.Length - 1
            strTemp(intCount) = objDoc.anchors.Item(intCount).Name
        Next
        
        GetBookmarks = strTemp
    End If
End Function

Properties | accessKey Property | all Property | children Property | className Property | dataFld Property | dataFormatAs Property | dataSrc Property | Document Property | filters Property | hash Property | host Property | hostname Property | href Property | id Property | innerHTML Property | innerText Property | isTextEdit Property | lang Property | language Property | Methods Property | mimeType Property | name Property | nameProp Property | offsetHeight Property | offsetLeft Property | offsetParent Property | offsetTop Property | offsetWidth Property | onafterupdate Property | onbeforeupdate Property | onblur Property | onclick Property | ondataavailable Property | ondatasetchanged Property | ondatasetcomplete Property | ondblclick Property | ondragstart Property | onerrorupdate Property | onfilterchange Property | onfocus Property | onhelp Property | onkeydown Property | onkeypress Property | onkeyup Property | onmousedown Property | onmousemove Property | onmouseout Property | onmouseover Property | onmouseup Property | onrowenter Property | onrowexit Property | onselectstart Property | outerHTML Property | outerText Property | parentElement Property | parentTextEdit Property | pathname Property | port Property | protocol Property | protocolLong Property | recordNumber Property | rel Property | rev Property | search Property | sourceIndex Property | style Property | tabIndex Property | tagName Property | target Property | title Property | urn Property

Methods | blur Method | click Method | contains Method | focus Method | getAttribute Method | insertAdjacentHTML Method | insertAdjacentText Method | removeAttribute Method | scrollIntoView Method | setAttribute Method | toString Method

Events | onafterupdate Event | onbeforeupdate Property | onblur Event | onclick Event | ondataavailable Event | ondatasetchanged Event | ondatasetcomplete Event | ondblclick Event | ondragstart Event | onerrorupdate Event | onfilterchange Event | onfocus Event | onhelp Event | onkeydown Property | onkeypress Event | onkeyup Event | onmousedown Event | onmousemove Event | onmouseout Event | onmouseover Event | onmouseup Event | onrowenter Event | onrowexit Event | onselectstart Event

Parent Objects

Child Objects | IHTMLElement Object | IHTMLFiltersCollection Object | IHTMLStyle Object