|
Ok i want to check when somebody uses a url that does not point to my index page that the cookie i set is present if not i want to send them to the log on page. This is what i ahve so far
oh yes my cookie is called
peterpan.net
so i want to see if this exists first
if it does i want to print "WELCOME TO OUR NEW WEB SITE!!!!" on a blank page if it is not found then i want to goto www.peterpan.net
where am i going wrong???
<HTML>
<Head>
<Script Language=JavaScript>
if (document.cookie.length > 0)
{
window.location.replace("http://www.peterpan.net")
}
</Script>
</Head>
<Body>
<h2><font color="red"><b><u><center>WELCOME TO OUR NEW WEB SITE!!!!</center></u></b>
</body>
</html>
|
|
|
|
|
|
|
|
|
© Copyright codetoad.com 2001-2005 |
|
|