Cron Process To Run Javascript On View Page

I want to confirm if it is possible for cron process to run javascript on view page? The javascript function is to display some message on view page. is it achievable? If yes then how?

not possible with cron you can use timeinterval to do this job.


you could send a request every certain time from client to server and get the results

There is a method to send from server to client directly but I never did that (Server Push - Ajax long polling / comet)

check this