By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,700 Members | 1,466 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,700 IT Pros & Developers. It's quick & easy.

Refreshing a browser with onClick event

P: n/a
Is there a method in onClick event to refresh the browser. I'd like to
have users click on a link to listen to a streaming audio feed, but at
the same time as the click, refresh the browser so that my animated
gifs will still animate.

thankx
Chumley the Walrus
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In JavaScript, you can do this to refresh your page:

document.location.reload(true);

Or you can use HTML META tag to refresh the page periodically:

<META HTTP-EQUIV="Refresh" content="10">

In this case, the page will refresh itself at every 10 seconds.


sp*******@yahoo.com (Chumley the Walrus) wrote in message news:<1e**************************@posting.google. com>...
Is there a method in onClick event to refresh the browser. I'd like to
have users click on a link to listen to a streaming audio feed, but at
the same time as the click, refresh the browser so that my animated
gifs will still animate.

thankx
Chumley the Walrus

Jul 20 '05 #2

P: n/a
"Chumley the Walrus" <sp*******@yahoo.com> wrote in message
news:1e**************************@posting.google.c om...
Is there a method in onClick event to refresh the browser.
I'd like to have users click on a link to listen to a
streaming audio feed, but at the same time as the click,
refresh the browser so that my animated gifs will still
animate.


Without any code to go on it is impossible to be certain but the usual
reason that animated GIFs stop playing on a page is the inappropriate
use of the javascritp: pseudo-protocol. Chances are that correcting that
error would remove the need to refresh/reload the page (which is
resource hungry thing to be doing jut to fix a slight visual glitch
anyway).

<URL: http://jibbering.com/faq/#FAQ4_24 >

Richard.
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.