Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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 Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 12-23-2006
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,016
Thanks: 0
Thanked 89 Times in 72 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,016
Thanks: 0
Thanked 89 Times in 72 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 28 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:
  #7 (permalink)  
Old 12-29-2008
Junior Member
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sarathmr is on a distinguished road
Re: refresh the page using javascript...

Reply With Quote
  #8 (permalink)  
Old 04-25-2009
Junior Member
 
Join Date: Apr 2009
Location: chennai
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
nagasen is on a distinguished road
Re: refresh the page using javascript...

function fun(){
var a=setTimeout(funName(),1000)
}


Reply With Quote
Reply

  Geeks Talk > Web Development > JavaScript

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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 10:24 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved