I am trying to use the embedded webkit in AIR to write a little browser with HTML+Javascript.

I am so displaying the page at the URL typed by the user in an iframe.

From there, I would like to:

1. access the content of the frame, for example to display the page on a tab.
2. be alerted when the user clicked into the frame, for example to update the url bar.

For 1), I know that's forbidden in a browser for security.
However, I would guess that this should be possible in an AIR app', may be by asking the user permission (like with Gecko in Firefox).

Does anyone know how to do 1) ?
Is there an event or something to do 2) ?

Thanks for your help,

J.