Have a custom popup Alert mimic a windows alerts
Posted on 2003-12-09
I have custom alert popup made with a div. There are certain points within my code such as when the user will get logged off of the server after a certain amount of time. When this happens an Alert popups to inform the user that the session has expired and then once you click ok will bring you back to the login screen. With the current code using the div it pops up and then proceeds to do then re-directing code.
I know you can't halt the code. No points for stating the obvious. I need a work-around method. I've been trying some ideas using setTimeout to recheck whether or not the div is still visible to no avail. Any help would be great, thanks!