Connecting Tech Pros Worldwide Forums | Help | Site Map

Refreshing a browser with onClick event

Chumley the Walrus
Guest
 
Posts: n/a
#1: Jul 20 '05
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

punkin
Guest
 
Posts: n/a
#2: Jul 20 '05

re: Refreshing a browser with onClick event


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.




springb2k@yahoo.com (Chumley the Walrus) wrote in message news:<1ef65641.0309191157.410e8e1f@posting.google. com>...[color=blue]
> 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[/color]
Richard Cornford
Guest
 
Posts: n/a
#3: Jul 20 '05

re: Refreshing a browser with onClick event


"Chumley the Walrus" <springb2k@yahoo.com> wrote in message
news:1ef65641.0309191157.410e8e1f@posting.google.c om...[color=blue]
>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.[/color]

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.


Closed Thread