Boris Zbarsky napisał(a):
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.


Yes, but how to dispatch a click?
nsIDOMHTMLAnchorElement and his base clases do not have such method (or I don't searched enough).
I found only Focus() and Blur(), but I think it is not enough.
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to