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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -