请问有没有办法使用vb程序获取网页上的控件名称啊!如果有的话请告之我代码,好么!谢谢了~!

解决方案 »

  1.   

    Set objSelection = WebBrowser1.Document.selection
        If Not (objSelection Is Nothing) Then
            Set objTxtRange = objSelection.createRange
            If Not (objTxtRange Is Nothing) Then
               ' Debug.Print objTxtRange.htmlText
                       Set objTxtRange = Nothing
            End If
            Set objSelection = Nothing
        End If