I have a javascript message box that pops up and alerts the user that access is denied. After the user clicks ok it continues on to the page, but does not load correctly. How can I redirect them back to the previous page or main page? Thanks again for your help.
Hi...
you have a script which in it, you show the message box.
in the next line of the message box, you have to redirect the page.
you can use : window.locaction.href = 'somepage.asp';
Have you tried to use the javascript equivalent of location.href="the_url_you_want.asp" after the code that displays the message box.
(I think it's window.location- it's been a while since I've used it).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.