Register  |  Login


Question

Status: Closed Points: 25 Time: 13:56 - Aug 24, 2006  

john2

How do I automatically redirect a user to another URL with Javascript?

I have my site currently going to a page where it is executing the functions I need it to. After executing those functions I would like it to automatically redirect the user to another page without any interaction from the user. Easy, but wanted the clean code for it.

Answer Discussion
Answer Summaries

 

Q&A System for Websites and Corporate Collaboration

Advertisement

  • Generates significant organic traffic for websites
  • Saves companies money, resources, and time

rcastagna

Date:: Aug 24, 2006

Time:: 15:40

John,

Within Javascript, the easiest way to do it would be to use the window.location.href = "newurlhere.htm";

This will send them where you want them to be...

Hope this helps,
Ric

john2

Date:: Aug 25, 2006

Time:: 09:45

Thanks a lot castagna.

Question Answered

This question has been closed, and points have been rewarded to the following experts:

rcastagna: 25

You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for the Summary Area.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

No summaries have been submitted yet. Want to be the first?

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Similar Questions

Ask a Question

Have a new question? Ask!

You have 100 characters to use


Top JavaScript Experts

View More

Rank

Expert

Points

1.

nidhi

665

2.

rcastagna

505

3.

jgivoni

428

4.

xarcus

280

5.

theDude

200

6.

redcharcoal

125

7.

roger.berbel

125

8.

Anpanman

87

9.

john2

80

10.

joxley

75

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es