javascript events - SetInterval not works fine in chrome browsers -


This works fine only for 5 minutes in Chrome so the page does not answer. I'm missing anything My code is It works fine in FF and IE8 browsers

  function do () {// code setting settime (do, 30000); If (navigator.userAgent.toLowerCase (). IndexOf ('chrome')> -1) {setInterval (two, 20000); }}  

Thankyou in advance

/ Code> A reserved word I believe, in chrome (while ..):

  function do () {} SyntaxError: unexpected token  
< P> Try to name it separately?

Wait: Why are you sniffing the browser?


Comments