ASP On Loaded

A

amatuer

Hi, can any1 tel me how do i and what exactly does an onloaded function
look like?

I want to use an on loaded function that when the page is done loading,
i want to use, respose.redirect to reload the page.

Thanx in advance for ur help.
 
R

Ray Costanzo [MVP]

Do you want the user to see the page first? If so, you can't use
Response.Redirect. You'd have to use client-side script.

<script type="text/javascript">
location.href = 'page2.asp';
</script>

Ray at work
 
A

amatuer

Yes i would like the user to see the page first. What does the script
below do?
 
R

Ray Costanzo [MVP]

Then you'll have to use client-side script. The script below will instruct
the browser to navigate to page2.asp.

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,138
Messages
2,570,801
Members
47,348
Latest member
nethues

Latest Threads

Top