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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to keep message for few seconds...

Status
Not open for further replies.

arravalli12

Programmer
May 3, 2005
62
US
I am updating a form and giving a message saying that Record Updated. Now I want to redirect to another page after showing the message for atleast 2-3 seconds.
At present, it redirects to other page without showing a message.
Is there any way to show the message for few seconds and then redirecting to other page?

Doupdate.Execute()
response.write " Record updated"
'Response.Redirect("familycode_Update.asp")
 
try this:

<SCRIPT LANGUAGE="JavaScript">

<!--

function redirect()
{
window.location = "insert your URL here"
}

setTimeout("redirect();", 3)

</SCRIPT>

-DNG
 
or you can use this alternative:

<META http-equiv= "refresh" content="3;insert URL here">

Put this on the top of your page

-DNG
 
1)The function is blowing up the page for some reason.

2)<META http-equiv= "refresh" content="3;insert URL here"> is refreshing page every 3 seconds.




 
is the function giving any error...there is nothing wrong with the function...make sure you placed it in the right place...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top