Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

timeout for refresh JavaScript?



7:40 am on Oct 12, 2002 (gmt 0)

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

I have a pop-up that displays a local webcam shot. I use: <meta http-equiv="refresh" content="10"> to refresh the window, thus pulling in the new shot that's redundantly ftp'd every 10 seconds, overwriting the old shot. Works well and I never really needed anything more sophisticated as far as scripting.

However, recently I have been seeing 2-3k in daily hits for this little window (normal is a couple hundred.) The webcam window has no toolbar, however I believe a user(s) may be saving it or just letting it refresh in the background indefinitely.

So I'd like to use maybe an external JavaScript to refresh this window but set a time out or max load number to stop this waist of bandwidth. How could I write this? Thanks.


6:30 pm on Oct 12, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

That would be tough as the javascript would be restarted every time you refresh the page. Maybe something with cookies?

Featured Threads

Hot Threads This Week

Hot Threads This Month