tgenter: Falscher Syntax?

Beitrag lesen

Hallo Forum!

Was mache ich falsch?!??


<html>
<head>
<script type="text/javascript">
<!--
function check {
 if(window.location.hostname == thouet.de)
 document.location.href="http://thomasgenter.de";
 if(window.location.hostname == www.thouet.de)
  document.location.href="http://thomasgenter.de";
 else
 document.location.href="http://www.fotocom.de/index.html";
 }
//-->
</script>
</head>
<body onLoad=check();>
</body>
</html>


Vielen anke für eure Hilfe!!

Ciao, thomas