Javascript Alert issue

167 views Asked by At

I am having some problem regarding a Alert box.

My site is performing a Session out and after logging out it goes to the index/main.html.

Currently, I am showing a Pop up alert once the session times out and Redirecting it to the Index page.

I want to show a Alert message once the session times out in the Index page saying: "Your session has time out, plz Login to continue'- If the user clicks 'Ok' he will be able to Login again.

Is it possible?

1

There are 1 answers

1
Tom On

why don't you redirect to the login page when ok is clicked ?

like so:

   document.location.href = "...login page...";