X xself Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-30 #1 当一个网页指定要在一个名为xxx的窗口中打开时,可在JavaScript里用window.name="xxx"完成,用TWebbrowser怎么实现这个功能?
S satanmonkey Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-30 #2 procedure Navigate(const URL: WideString; var Flags: OleVariant; var TargetFrameName: OleVariant; var PostData: OleVariant); overload; TargetFrameName参数就是。
procedure Navigate(const URL: WideString; var Flags: OleVariant; var TargetFrameName: OleVariant; var PostData: OleVariant); overload; TargetFrameName参数就是。
X xself Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-30 #3 但是我怎么把我要在其中打开网页的Webbrowser设为TargetFrameName呢?
东 东兰梦舞 Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-30 #4 var d: OleVariant; begin d := WebBrowser1.Document; d.parentWindow.name := 'mywin'; end;
S satanmonkey Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-31 #5 procedure TForm1.Button1Click(Sender: TObject); var aa:OleVariant; begin aa:='xx'; webbrowser1.Navigate('http://wwww.sina.com.cn',EmptyParam,aa,EmptyParam) end;
procedure TForm1.Button1Click(Sender: TObject); var aa:OleVariant; begin aa:='xx'; webbrowser1.Navigate('http://wwww.sina.com.cn',EmptyParam,aa,EmptyParam) end;