docmcneil
08-25-2003, 10:11 AM
I'm trying to use the "window.location.href" variable to refer a browser to another page.
I have 3 specific subdomains for my site...
hotashell.platinum-pro.com
priesttattoo.platinum-pro.com and
www.platinum-pro.com
I made the platinum-pro.com/index.html nothing more than a redirect page.
I tried a simple script like this:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (window.location.href = "http://priesttattoo.platinum-pro.com/") window.location.replace("tattoo/priesttattoo.html");
if (window.location.href = "http://hotashell.platinum-pro.com/") window.location.replace("hotashell.html");
if (window.location.href = "http://www.platinum-pro.com/") window.location.replace("index1.html");
// End -->
</script>
but I'm quite sure I didn't do it right.
Can someone show me what I need to do to make this work?
Thank you
Kevin
I have 3 specific subdomains for my site...
hotashell.platinum-pro.com
priesttattoo.platinum-pro.com and
www.platinum-pro.com
I made the platinum-pro.com/index.html nothing more than a redirect page.
I tried a simple script like this:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (window.location.href = "http://priesttattoo.platinum-pro.com/") window.location.replace("tattoo/priesttattoo.html");
if (window.location.href = "http://hotashell.platinum-pro.com/") window.location.replace("hotashell.html");
if (window.location.href = "http://www.platinum-pro.com/") window.location.replace("index1.html");
// End -->
</script>
but I'm quite sure I didn't do it right.
Can someone show me what I need to do to make this work?
Thank you
Kevin