Welcome to WebmasterWorld Guest from 54.162.167.40

Forum Moderators: open

Message Too Old, No Replies

javascript page redirect problem

     
10:29 pm on Apr 10, 2004 (gmt 0)

10+ Year Member



I'm using a javascript file to redirect one page to another. I'm using the following in my 1st page: <script type="text/javascript" src="/redirect.js"></script> And I am using the following in my .js file: window.location.replace("h*tp://wwww.example.com/example/example.htm").
However when the page redirects it goes to the correct page but with 4 w's ie. wwww.example.com.... and therefore shows up as a page error. Any ideas why?
11:04 pm on Apr 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>window.location.replace("h*tp://wwww.example.com/example/example.htm").

Your example has 4 w's in it! Is that an error on your part?

-George

9:42 am on Apr 11, 2004 (gmt 0)

10+ Year Member



Ooops. Yeah thanks. Been working on new site for a while now and I've gone crossed eyed. Could a mod delete this please so I don't look so stupid :)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month