To simulate a manual click, not an auto one.
After all, there is some difference in the way we 'click' using our mouse at some place in the document, and what can be achieved by the dispatchEvent "click" in Firefox.
I noticed that when I click on any area outside the two frames, it works again. Idea : "Why not do a setTimeOut or setInterval sort of thing, which just sits and keeps on clicking on a place outside the frames"? Good idea, but doesn't work. Why? Is installing the same kind of key handlers in both the frames the only other way? Even setting focus on an element on the parent page doesn't work. Please help.
You can not simulate a click action (at least not in all the browsers). All you can do is to capture the click event or to trigger a function onclick.
Hi Kor, thanks for your reply. Do you have any other suggestion for the problem I'm facing? Do you think each of my frames would need to have a key handler for the keys?
I don't care about all the browsers. I just care about Firefox. Is it possible in that?
You should focus() the frames (or the parent, it is not quite clear for me) window whenever you want to. Or, as I said, you may capture the event (on each document) and decide what to do next, accordingly.
Catching the onclick event in each frame is one solution, but that will involve a lot of work. I was thinking of a simple solution if possible.
Thanks a lot for your continuing help!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread