Tomasz Pyra wrote:
How to tell browser to follow given (nsIDOMHTMLAnchorElement) link? (act just like when user do mouseclick on that link).

Now I doing GetHref() on that nsIDOMHTMLAnchorElement, and then OpenURL() of link's URL.

It works, but there is problem when there are frames on page ( target URL is loading on whole screen, instead of loading it only into properly frame).

You could dispatch a click event to the anchor.... As long as the event is trusted (which it should be if dispatched from privileged JS or from C++), that will work.


-Boris
_______________________________________________
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to