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.