View Full Version : Hiding subdomain name from the browser
aone_pro
01-09-2004, 11:04 AM
Can some one point me to a script or guide me how we can hide the subdomin name from displaying on browser status and address area. Using client side or server side programing logic.
For e.g. I have an application running on a third party server and they have given me a url as http://myname.theirdomain.com.
Now I just want to display http://www.myname.com when ever my customers navigate on http://myname.theirdomain.com.
Thanks in advance.
Keimos
01-17-2004, 08:10 PM
javaScript is the quick answer although I am sure there are other scripts that can do the same.
The below is taken from Dreamweaver but should work in most browsers. You cam take out the MM_ if you like.
<script language="JavaScript">
<!--
function MM_displayStatusMsg(msgStr) { //v1.0
status=msgStr;
document.MM_returnValue = true;
}
//-->
</script>
<body onMouseOver="MM_displayStatusMsg('www.myname.com');return document.MM_returnValue">
Hope that helps.
paulhiles
01-18-2004, 09:45 AM
Hi Keimos,
Thanks for your contribution, but I think the original request by aone_pro is asking for a script that would effectively cloak or mask a subdomain. The script you provided would give a default message in the browser's status bar, which is handy, but not really what aone_pro is looking for... as the address window would not be affected.
Paul
matauri
01-18-2004, 09:59 AM
Is the subdomain a domain name in its own right?
i.e
myname.com is a registered domain name?
If it isn't, and you are referring to masking a subdomain to look like a domain in itself, then I'd be iterested as to it's existance. Because it would negate any importance of registering a domain name.
Unless, your talking about a subdomain which is under the network of a main domain name. (it's part of a bigger site-a branch of it that you have made a subdomain)
Either way, I'd be interested to see if there was such a thing.
Cindy