奇怪奇怪,有关于webbrowser中frames的问题(100分)

  • 主题发起人 主题发起人 dreamese
  • 开始时间 开始时间
D

dreamese

Unregistered / Unconfirmed
GUEST, unregistred user!
这个页面有两个frame组成的
偶的代码如下
If Webbrowser2.OleObject.Document.Frames.Length <> 0 Then
Begin
//walk through all frames and get the url
//to the Listbox
For i := 0 To Webbrowser2.OleObject.Document.Frames.Length - 1 Do
Begin
Memo1.Lines.Add(Webbrowser2.OleObject.Document.Frames.item(i).Document.URL);
End;
End;

对于第一个frame,可以正常操作的
但是对第二个frame,就提示"Project Project1.exe raised exception class EoleException with message'拒绝访问。',
Process stopped,use step or run to continue.".
这是怎么搞的呀,偶明明有两个frame,而且frames.length显示也是2的
救命呀
 
大家如果要测试
可以连http://yfinfo.dns2go.com/down/1.htm
这是偶自己写的一个html文件
两个frame
一个连www.china.com
一个连www.zao.com
 
高手都跑那里去拉
帮偶看看呀
分不够可以加
 
写一个这么不全的代码,别人肯定不想太麻烦,所以不答,cakk到哪了?
 
后退
顶部