在ole_1的clicked事件中寫入如下代碼:
string ls_tagName, ls_id, ls_href
ls_tagName=ole_1.object.document.activeElement.tagName
messagebox("",ls_tagName)
if upper(trim(ls_tagName))="A" then
ls_id = ole_1.object.document.activeElement.id
ls_href =ole_1.object.Document.activeElement.href
messagebox('', ls_tagName + '/' + ls_id + '/' + ls_href)
ole_1.object.Navigate(ls_href)
end if
問題描述:
第一次滑鼠點擊正常,即點擊非鏈接彈出對話框 :BODY ; 點擊鏈接彈出對話框 A
第一次滑鼠點擊就不正常,即點擊非鏈接彈出對話框 :A ; 點擊鏈接同樣彈出對話框 A
除非重新重繪網頁就恢復正常,請教大師們怎么解決,謝謝!!!
uj5u.com熱心網友回復:
單步執行一下,看看代碼出錯在哪里了轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/16423.html
標籤:控件與界面
