The Mozilla control also fires a NewWindow(2) event when it wants the 
client to open a new window. The client is supposed to implement that 
and return a pointer to the newly created IWebBrowser instance. If you 
don't implement that then popups won't work.

Alec Flett wrote:

> I could be wrong, but I think document.write() is broken in the 
> embedded case, or at least the ActiveX control. Anyone?
>
> Alec
>
> Fernando Rodr�guez wrote:
>
>> Hi!
>>
>>     The following code won't work with the mozilla control, while it 
>> works
>> fine with mozilla:
>>
>> In the html file:
>> <!-- Creates a link to a popup window -->
>> <script type="text/javascript" language="JavaScript">
>>     makeExampleLink( 'ProfileExample.html' );
>> </script>
>>
>> The javascript sourcecode:
>>
>> function makeExampleLink( theUrl ) {
>>
>>     // Target
>>     theUrl = "'" + theUrl + "'";
>>     var buff = 'javascript:openPopupExample( ' +
>>                theUrl + ' ) ';
>>     
>>     buff = '<a href = "' + buff + '" ' +      
>>            'title = "Click here for an example" ' +
>>            'class = "example">' +
>>            ' Example </a>';
>>                           document.write( buff );
>> }
>>
>> What am I doing wrong? O:-) I absolutelly need this in order to ship...
>>
>> TIA
>>
>>
>>
>>
>> -- 
>> Fernando Rodr�guez
>> frr at wanadoo dot es
>> -- 
>>
>
>


Reply via email to