Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HMTLMetaElement

Status
Not open for further replies.

ecannizzo

Programmer
Sep 19, 2000
213
US
Does anyone know how to use this method to get the meta tags out of a web page?

Erica
 
I use objects.
Code:
Dim mobjdocument as object
Dim objelements as object
Dim objelement as object
With mobjWeb
    Do
        Set mobjDocument = mobjWeb.Document
        If Err.Number <> 0 Then Exit Do
        If mobjDocument Is Nothing Then Exit Do
        '*****
        '* META http-equiv=&quot;Refresh&quot; BYPASS REDIRECTION
        '*****
        Set objElements = mobjDocument.getElementsByTagName(&quot;Meta&quot;)
        If Err.Number <> 0 Then Exit Do
        If objElements Is Nothing Then Exit Do
        For Each objElement In objElements
            If LCase(objElement.httpEquiv) = &quot;refresh&quot; Then
                '* We are still busy
                blnBusy = True
                Exit Do
            End If
        Next
    Exit do: loop
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top