Home All Groups Group Topic Archive Search About

How can I simulate an onclick event in IE?

Author
6 Dec 2006 4:10 AM
melton9
I've been searching around and haven't really found anything.  I've but
an IE browser on my form and would like to simulate clicking the
provided refresh button on a one minute interval.  I can't use navigate
because the page has frames and only one frame does the refreshing.
Surely theres a simple way to make the browser simulate the onclick of
the particular button I'm wanting?  Its javascript in frame 2.  Can
anyone help?

Author
6 Dec 2006 12:51 PM
Andrew Morton
melt***@hotmail.com wrote:
> I've been searching around and haven't really found anything.  I've
> but an IE browser on my form and would like to simulate clicking the
> provided refresh button on a one minute interval.  I can't use
> navigate because the page has frames and only one frame does the
> refreshing. Surely theres a simple way to make the browser simulate
> the onclick of the particular button I'm wanting?  Its javascript in
> frame 2.  Can anyone help?

I think you want a Javascript timeout object calling whatever function would
be called by clicking the button.

Unless you meant the equivalent of a refresh button in a browser, in which
case
http://en.wikipedia.org/wiki/Meta_refresh

or maybe you're looking for
http://en.wikipedia.org/wiki/Ajax_(programming)

Andrew