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,807
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 Electronic Punk 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 Sazar 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 Electronic Punk Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk Sazar Electronic Punk wrote on Sazar's profile.
Where are you buddy?

Forum statistics

Threads
62,017
Messages
673,508
Members
5,635
Latest member
gosthe
Back