Geeks Talk

Prepare for your Next Interview




refresh the page using javascript...

This is a discussion on refresh the page using javascript... within the JavaScript forums, part of the Web Development category; Using javascript i want to refresh my page every 2 minutes....Is there any function in javascript ? ------------------- suresh...


Go Back   Geeks Talk > Web Development > JavaScript

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-23-2006
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
refresh the page using javascript...

Using javascript i want to refresh my page every 2 minutes....Is there any function in javascript ?

-------------------
suresh
Reply With Quote
The Following User Says Thank You to psuresh1982 For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 02-03-2007
Junior Member
 
Join Date: Nov 2006
Location: Bangalore
Posts: 26
Thanks: 2
Thanked 6 Times in 4 Posts
TigerElango is on a distinguished road
Re: refresh the page using javascript...

function reload()
{
window.location.reload();
}
this method will reload the page when u call the method.....but not for every two minutes......

the same situation happened for me also ie...to refresh the page every 30 seconds....my friend gave me a piece of code which refreshes every 30 seconds.....but i didn't tried that.....here is that code...


i think it may be useful for u......

Last edited by TigerElango : 02-03-2007 at 08:25 AM.
Reply With Quote
  #3 (permalink)  
Old 02-03-2007
Junior Member
 
Join Date: Nov 2006
Location: Bangalore
Posts: 26
Thanks: 2
Thanked 6 Times in 4 Posts
TigerElango is on a distinguished road
Re: refresh the page using javascript...



sorry i don't know why the code is not displayed in the previous reply.........

Last edited by TigerElango : 02-03-2007 at 08:29 AM.
Reply With Quote
  #4 (permalink)  
Old 02-03-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
Re: refresh the page using javascript...

hi elango i can't see the code..can you upload it. don't use "script" tag..you just post the function.

--------------------
suresh
Reply With Quote
  #5 (permalink)  
Old 02-03-2007
Junior Member
 
Join Date: Nov 2006
Location: Bangalore
Posts: 26
Thanks: 2
Thanked 6 Times in 4 Posts
TigerElango is on a distinguished road
Re: refresh the page using javascript...

function refreshPeriodic()
{
location.reload();
timerID=setTimeout("refreshPeriodic()",30000);
}
timerID=setTimeout("refreshPeriodic()",30000);
Reply With Quote
  #6 (permalink)  
Old 02-03-2007
Expert Member
 
Join Date: Sep 2005
Posts: 110
Thanks: 8
Thanked 26 Times in 15 Posts
suji is on a distinguished road
Re: refresh the page using javascript...

add this

PHP Code:
<meta http-equiv="refresh" content="10" 
refreshes for every 10 sec
Reply With Quote
The Following User Says Thank You to suji For This Useful Post:
Reply

  Geeks Talk > Web Development > JavaScript


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Create High Quality Tables with JavaScript Lokesh M JavaScript 1 11-12-2007 02:35 AM
problem for search page..? psuresh1982 Java 0 12-08-2006 09:57 AM
PHP Code to email HTML Page along with PDF Attachment Shivanna PHP 0 10-11-2006 05:57 AM
Web Page Wizard Lokesh M HTML & CSS 0 06-27-2006 11:19 AM
Page Designer Lokesh M HTML & CSS 0 06-26-2006 08:33 AM


All times are GMT -4. The time now is 05:19 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved