Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Message Box

Status
Not open for further replies.

ptuck

MIS
Aug 8, 2003
130
US
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.

Paul
 
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';

----
TNX.
E.T.
 
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).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top