How Can I Send An Url To The User?

how can i do that when the user will enter to my site it will auto send him to other url?
LVL 2
saar071697Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

knightEknightCommented:
You could set your web sites default page to the page you want them to see, or you could specify this in the onLoad event of your index.html file like this:

<BODY onLoad='top.location="www.myother.url";'>
0
punkerCommented:
Something like this will solve your problem:

<HTML>
<HEAD><TITLE>Redirecting To Our New WebSite</TITLE></HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--HIDE
function OurNewSite(){
   setTimeout("window.location.replace('http://ournewsite.com/')", 7000)
}
//STOP HIDING-->
</SCRIPT>
<BODY onLoad="OurNewSite()">
<H1>Our site has moved!</H1>
You will now be redirected.<br>
<br>
If you are not redirected in a moment, please <a href="http://ournewsite.com">Click here to continue</a>.
</BODY>
</HTML>

If you would like to redirect seamlessly (without a waiting period), you may remove the javascript and replace <BODY onLoad="OurNewSite()"> with <BODY onLoad="window.location.replace('http://ournewsite.com')">

Incidentally, if you are using ColdFusion, you can also use <CFLOCATION URL="http://ournewsite.com">.

To my knowledge, there is no way to do this via straight HTML.
0
punkerCommented:
Sorry knightEknight... we must've been busy answered at the same time, the question was untouched when I started replying.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

punkerCommented:
Or answering.
0
limcuandoCommented:
saar,

Do you have meta tags in your index (or default) page?

If not, try this:

<HTML>
<HEAD>
<META HTTP-EQUIV="REFRESH" content="0; url=http://www.youraddress.com">
</HEAD>

This tag should automatically redirect the visitor to the new page (http://www.youraddress.com) without waiting (0 seconds).
0
saar071697Author Commented:
no, you got me all worng
i need that it will open it in a new browser window
0
saar071697Author Commented:
no, you got me all worng
i need that it will open it in a new browser window
0
rupertsCommented:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function newwin() {
window.open('http://www.yourserver.com/page-to-open.html','','toolbar=no,menubar=no,location=no,height=500,width=500');
}
// End -->
</SCRIPT>


<BODY onLoad="newwin()">

Problem solved! (I hope) You can change the hight,width etc of the new window if you wish to!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.