jquery - Javascript-Alert box -
i working on single page application using angularjs work on intranet. 1 of requirement after every 15 min have forcefully show message user if working on other program , once click on ok button automatically browser tab need shown. functionality need work on ie11/ie edge/chrome/mozilla firefox. when tried javascript alert box chrome works expected when tried firefox , ie highlight tab. unless user goes tab alert box doesn't shown up. there workaround this?
there other solution?
i have priority ie/edge. in advance.
i haven't messed angularjs, if it's js should take normal js. code seems work me , tested , worked me (having set 1 second). first block function allow repeat, , second block allows code initialize loop.
function alertboxtimer(){ window.settimeout(function() { alert('message goes here'); alertboxtimer(); }, 900000); //60*1000*15 = 900000 = 15mins } //initialize alert alertboxtimer();
Comments
Post a Comment