Refresh web page

omg its nlm

lvl 17 Hax
Joined
10 Jan 2004
Messages
1,829
Anyone out there know the code to auto refresh a webpage every 20secs.

Thanks
 

omg its nlm

lvl 17 Hax
Joined
10 Jan 2004
Messages
1,829
i am using this to stream my web cam, is there just a way to refresh the pic and not the entire page?

I figure out how to refresh the page
 

SPeedY_B

I may actually be insane.
Joined
31 Mar 2002
Messages
15,806
It's doable, but it'll **** up any compliancy you have ;)

Head
Code:
<script type="text/javascript">
function refresh_image() {
    document.imgWebCam.src = "images/webcam.jpg"
    setTimeout("refresh_image()",15000);
}
</script>

Body
Code:
<body onLoad="refresh_image();">

Anywhere
Code:
<img src="images/webcam.jpg" alt="Cam" />
 

Members online

No members online now.

Latest profile posts

Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?

Forum statistics

Threads
62,007
Messages
673,466
Members
5,598
Latest member
Larry Chris