P.S. That should work fine, however here is a sample script done in ASP that will do the same thing:
<%
' Get Start Time
StartTime = Timer()
'Get End Time
EndTime = Timer()
'Determine how long it took
WaitTime = EndTime - StartTime
'Continue checking the elapsed time until it reaches 5 seconds
do while WaitTime < 5
'Get End Time
EndTime = Timer()
'Determine how long it took
WaitTime = EndTime - StartTime
loop
'Redirect user, since we know that it has been more than 5 seconds
Response.Redirect "page2.asp"
%>
From:
http://www.askasp.com/articles.asp?ArtID=85
As you can see, generally it will be easier to use the HTML way.