Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
looking for Fast redirect page code?
Old 10-03-2007, 01:42 AM looking for Fast redirect page code?
brian101's Avatar
Super Talker

Posts: 147
Location: Seattle, WA
Trades: 3
<script language=javascript><!--
top.location.replace("www.msn.com");
//-->
</script>

is there anything faster than this?
__________________

brian101 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-03-2007, 05:17 AM Re: looking for Fast redirect page code?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
window.location might be marginally quicker in some browsers


server side is much quicker though.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-03-2007, 08:11 PM Re: looking for Fast redirect page code?
brian101's Avatar
Super Talker

Posts: 147
Location: Seattle, WA
Trades: 3
you know the code by chance, sorry i dont know much about javascript i just need it for my site for redirecting on links. thanks in advance
__________________

brian101 is offline
Reply With Quote
View Public Profile
 
Old 10-03-2007, 08:39 PM Re: looking for Fast redirect page code?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Server side is not javascript.
Server side is php, asp, jsp or any other language interpreted on the server, opposed to javascript, which is a language executed into the client browser.

Server side language cannot interact on the page once loaded, and client side language cannot interact with the server.
Except by making new requests, but no db access, file reading nor writing...

If you want to do a server side redirect, you will need to know which language is supported by your host.
if it's php, a simple
PHP Code:
 header('location:my_new_url.html');
exit(); 
will be enough
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 10-03-2007 at 08:40 PM..
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 10-03-2007, 08:59 PM Re: looking for Fast redirect page code?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
and the js is window.location= "url";


You do realise that search engines cannot follow javascript redirects either.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-04-2007, 12:47 AM Re: looking for Fast redirect page code?
brian101's Avatar
Super Talker

Posts: 147
Location: Seattle, WA
Trades: 3
thanks for all your help
__________________


Last edited by brian101; 10-04-2007 at 01:33 AM..
brian101 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to looking for Fast redirect page code?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.29990 seconds with 12 queries