Assuming you've already created the new window, with the MozillaBrowser
control in it.
When you're inside the newwindow2 event handler you need to assign the
application dispatch of the new MozillaBrowser control to the ppDisp
variable passed into the event handler.
This is Delphi, but you should easily see what I'm doing here.
procedure TfmMain.wbGenericNewWindow2(Sender: TObject; var ppDisp:
IDispatch;
var Cancel: WordBool);
begin
//Cheap trick to avoid the stupid sites, that open windows when you try to
leave their site. :(
if (bDestroyingTab) then exit;
CreateWebSheet(True);
if (miRenderIE.Checked) then
begin
ppDisp := (pc.ActivePage.Controls[0] as TEmbeddedWB).Application;
end
else
begin
ppDisp := (pc.ActivePage.Controls[0] as TMozillaBrowser).Application;
end;
end;
"����� �����������" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi im trying to make a web browser based on Mozilla in vb code!!
> and imtrying to the mozilla control to be able to laod bpages in new
window
> when it is been commanded to do it throughhtml,javascript or user!!
> but the only thing that happens is that opens the same site!!
> im using vb6 and the latest version of mozilla control!!
>
>
>
>
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding