Does window.open not work inside an AIR html component?

Posted by John Isaacks on Stack Overflow See other posts from Stack Overflow or by John Isaacks
Published on 2010-06-15T17:59:38Z Indexed on 2010/06/15 18:02 UTC
Read the original article Hit count: 165

Filed under:
|
|

I have a component in AIR like so:

<mx:HTML
        id="html"
        width="100%" 
        height="100%" 
        location="https://example.com" 
        locationChange="dispatchLocationChange(event)"
    />

The page it loads contains this:

<a onclick="alert('onclick')">Alert</a>
<a href="javascript:alert('js')">Alert</a>
<a onclick="window.open('http://www.google.com','_blank')">new window</a>

The 2 alerts both work. however nothing happens when you click the new window link.

all 3 links works when in a real browser so I know its ok.

Is there just no support for window.open in the AIR HTML component? or is this a bug?

Is there a work around?

© Stack Overflow or respective owner

Related posts about flex

Related posts about flash