Refreshing a browser with onClick event

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chumley the Walrus

    Refreshing a browser with onClick event

    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

    #2
    Re: Refreshing a browser with onClick event

    In JavaScript, you can do this to refresh your page:

    document.locati on.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.410e 8e1f@posting.go ogle.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]

    Comment

    • Richard Cornford

      #3
      Re: Refreshing a browser with onClick event

      "Chumley the Walrus" <springb2k@yaho o.com> wrote in message
      news:1ef65641.0 309191157.410e8 e1f@posting.goo gle.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.[/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.


      Comment

      Working...