Stay With us
3 new comments

beginner
new

Help & Settings
About
Help
Tips

Execute a javascript function after some minute repeatedly

I am creating a chat system. Actually i want to check that if knew message is received or not, so that i can send user a notification. I am using ajax for checking the new message.

For this, i have created a method in my javascipt file. Now i want to execute it after some specific time so that it can check that whether a new message is arrived or not. But i do not know that how can i call my function after every specific time intervel to check data.

How can i do this in javascript or jquery? Is there any method for that?

(1) Replies

Please login or register to Comment or Answer