Remove window.alert after interval

Soldato
Joined
27 Dec 2005
Posts
17,296
Location
Bristol
Is it possible to automatically ok/remove/override an JS window.alert prompt after a set amount of time? I've tried using setInterval to reset the alert to "" after 5 seconds but it doesn't work and my Googlefu is failing me (delete/remove etc are too vague terms).
 
Soldato
OP
Joined
27 Dec 2005
Posts
17,296
Location
Bristol
It's just a simple thank you alert, but it's on a point-of-sale system so I don't want it blocking the page after the customer has left.

And yeah I'll probably have to look at a lightbox or div popup but it's far more faff than removing an alert (if it were possible!).
 
Back
Top Bottom