Reply
can a script change address in browser bar?
Old 08-11-2004, 07:06 AM can a script change address in browser bar?
Novice Talker

Posts: 8
I was wondering if there was a script available that would allow me to change the address of the viewers browser bar?

for example if i have a domain name: mydomain.com and one called mydomaine.com (they both point to the same web page).

the user types in the first one (mydomain.com) but the site and company are called mydomaine.com is there a script that will change the wrongly spelt domain to the proper spelt name, without refreshing the page?

Any help would be appreciated.

Thanks
kfc04 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 08-11-2004, 07:53 AM
Unknown.

Posts: 1,693
I doubt it..

Otherwise you could change the address and claim to be anyone..

like prtending to be microsoft and your updates are really viruses

-James
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 08-11-2004, 08:41 AM
Novice Talker

Posts: 8
fair point had not thought of that!

Can the people that registered the domain name fake it in some way or would i have to set up a sub server and have to seperate index pages?
kfc04 is offline
Reply With Quote
View Public Profile
 
Old 08-11-2004, 09:01 AM
Republikin's Avatar
Super Moderator

Posts: 3,191
Most registrars offer a service like this that will forward your domain to another. Some allow this option some don't. A good service that I have used in the past is http://www.mydomain.com/
Republikin is offline
Reply With Quote
View Public Profile
 
Old 08-11-2004, 10:00 AM
David43's Avatar
Online Anarchist

Posts: 360
Needs to be done with your domain host.
__________________
Bo Avid
Little Britain
David43 is offline
Reply With Quote
View Public Profile Visit David43's homepage!
 
Old 08-11-2004, 02:19 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Sherman, TX
Of course, there is that vulnerability in IE that allows exactly that...so if you haven't run windows updates in forever, you might want to get that patched.
__________________
personal | portfolio
techwench is offline
Reply With Quote
View Public Profile Visit techwench's homepage!
 
Old 08-12-2004, 12:17 PM
Novice Talker

Posts: 8
k thanks guys, it was through the domain host that i achieved this the last time, however the host of this different site told me that as far as he was aware a simple Javascript in my html page would do it.

The down side to that advice was that he couldnt me what the script was!
kfc04 is offline
Reply With Quote
View Public Profile
 
Old 08-12-2004, 01:10 PM
Skilled Talker

Posts: 83
Location: Ohio
Some domain name registrars offer a stealth domain handle. Ask them about it
techguru is offline
Reply With Quote
View Public Profile
 
Old 08-12-2004, 08:08 PM
GoToTrafficScho's Avatar
Average Talker

Posts: 15
Just redirect it yourself, either with a META Refresh or in ASP, PHP whatever you like better, that would be bad for search engines tho.. If you have acces to the server do a 301 Redirect that wont hurt your ranking if you care.
__________________
GoToTrafficSchool.Com: Traffic School - TeenDrivingCourse.Com: Driver Ed
GoToTrafficScho is offline
Reply With Quote
View Public Profile
 
Old 08-17-2004, 10:56 PM
collyer_1's Avatar
Extreme Talker

Posts: 169
Location: Southern Alberta, Canada
Your best bet would be to set up a redirect script that took the person directly from "mydomain.com" to "mydomaine.com" it will not even look like a refresh on most computers.

this should be your index page at "mydomain.com":
Code:
<html>

<form name="redirect">
<center>
<form>
<input type="text" size="3" name="redirect2">
</form>
</center>

<script>
<!--


//change below target URL to your own
var targetURL="http://mydomaine.com"

var countdownfrom=0




var currentsecond=document.redirect.redirect2.value=countdownfrom+1
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.redirect.redirect2.value=currentsecond
}
else{
window.location=targetURL
return
}
setTimeout("countredirect()",1000)
}

countredirect()
//-->
</script>
</html>

Last edited by collyer_1 : 08-17-2004 at 11:01 PM.
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
Old 08-18-2004, 03:05 AM
morphius2's Avatar
Experienced Talker

Posts: 31
That was my thought, too, Collyer ...
__________________
- Morphius2
morphius2 is offline
Reply With Quote
View Public Profile
 
Old 08-18-2004, 07:42 AM
lajkonik86's Avatar
Ultra Talker

Posts: 389
i would go for the meta stuff

very easy
<meta http-equiv="refresh" content="8; url=http://www.top-download.net">

you would offcourse have to change the url. and the 8 into 0
lajkonik86 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to can a script change address in browser bar?
 

Thread Tools

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

vB 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 0.18141 seconds with 12 queries