homepage Welcome to WebmasterWorld Guest from 54.227.141.230
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
javascript page redirect problem
chairwars




msg:1470182
 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




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

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

chairwars




msg:1470184
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved