Log in

View Full Version : how to refresh a page in javascript at each second



mehran
01-28-2011, 05:43 AM
hi
i am new to javascript,
how i refresh the counter in javascript without the page refresh,
plz help me,
i need this for an event,a function would be called if the db time is equal to the current time of the server,i got both the times but now howi generate this plz help. . . . . . . . . . . . .

Moglizorz
01-28-2011, 07:42 PM
How about asking that in the javascript section instead of the PHP section? :P
Personally I'd suggest making a DIV with a class/id that you can change the contents of via javascript (google that). That way you can update what's in the DIV without refreshing the page.