Re: Simulating clicks on the DOM node of the GMAIL page.
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
Amit Saurav wrote: > Yes, I am calling this on the iframe on the gmail page which contains > the emails. Probably the display is set to none, which i am not sire > of, as it is difficult to see in the DOM. Is there a problem in > simulating this event on iframes in general? The method you're using dispatches events based on actual screen positions. If display:none is set on the iframe, there are no actual screen positions involved, so it can't work. As a result it bails out. If you want to just dispatch a DOM click event (as opposed to closely simulating an actual mouse click), I'd use the DOM event APIs for that purpose... -Boris