Muaz Khan
Muaz Khan

Reputation: 7236

window.setInterval jQuery function does not work on IE8

window.setInterval(function(){
   $('#Notify-Bar').html('a new notification');
}, 5000);

Did not work on IE, however works fine on other major web browsers (like Chrome, Firefox, Opera)...

Upvotes: 1

Views: 7389

Answers (1)

Chris
Chris

Reputation: 27384

You should use something like

setInterval("myFunc()",5000);

function myFunc()
{
    $('#Notify-Bar').html('a new notification');
}

Upvotes: 4

Related Questions