我记得JavaScript倒是可以 :)

解决方案 »

  1.   

    可能是我没有表达清楚,我再说具体一点。
    使用WebBrowser控件和MSHTML库编程时,可以分析操作WebBrowser控件的Document,当WebBrowser浏览的是一个单独的HTML页面(不是Frame框架)时,可以根据某点处的变量类型就是判断相应的HTML元素,如:IHTMLInputButtonElement类型对应InputButton元素,就是HTML语言<Input Type=Button...>或<Input Type=Submit/Reset...>对应的那个东西。但是在浏览Frame页面时,因为Frame框架是调用其他HTML页面,结果就导致只能得到对应的Frame元素,而无法得到Frame框架中的HTML页面对应此点的具体的Element,如InputButton、Select、TextArea或是InputText。
      

  2.   

    如果Frame又内含其他页面,是否可以在其中写一个Public_FunctionName函数,然后在Scriptlet外部读出?
      

  3.   

        我不是编制HTML页面,而是用WebBrowser控件编制专用浏览器(没有鼠标),并且是浏览Internet,所以很抱歉,以上方法不行。
      

  4.   

    试试 GetElementUnderCaret.tagName 如何?
                           浪子
      

  5.   

    取得每Frams中的Link
    for Count1 :=0 to wb_Cash.oleobject.document.
                      documentelement.document.frames.Length -1 do
    for count :=0 to wb_Cash.oleobject.document.
                      documentelement.document.frames.item(Count1).document.
                      links.length -1 do
            Begin
              tmp :=wb_Cash.oleobject.document.documentelement.document.frames.item(count1).document.links.item(count).href;
    end;
    end;
    这样可以了吧,我查这个东西近用了近一个月时间