javascript - Focus on browser -
so facing following scenario, , wondering if there solution problem (i thin there isn't one, yeah..maybe guys know).
so have restaurant receives orders in browser...the restaurant owner logs in website, , in orders page can see orders receives...
as restaurant doesn't orders time...the employes try kill time @ computer...and there 2 ways in can this: 1. opening other tabs in same browser (like facebook , stuff :)) 2. opening maybe other browsers and/or programs.
so employees know there new order, use background sound announce them...however hoping find way have orders tab displayed when new order received...
now in first scenario, can using alert...am right or there way? in second solution don't know if possible...so maybe can me :)
thanks
edit: guys suggesting alert..however works in first case (at least in tests, when in program example, orders tab wasn't brought when using alert..so alert solves problem when on different tab, in same browser )
you may html5 notification also
but works in chrome , firefox now. play safe, beleive alert way
Comments
Post a Comment