homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

javascript page redirect problem

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

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?


Alternative Future

 11:04 pm on Apr 10, 2004 (gmt 0)


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



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

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 :)

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved