Hi Leute
Daß:
<? /* Für zickige Server */ ?>
<html>
<head>
<title>kleiner JS test</title>
<?
$js++;
if ($js<2)
{
echo '
<script type="text/javascript">
<!--
window.location.href="test.php?js='.$js.'";
//-->
</script>
';
}
?>
</head>
<body>
<?
if ($js==2)
{
echo "hallo";
}
else
{
echo "javascript einschalten";
}
?>
</body>
</html>
ist natürlich die datei test.php (die sich selbst neu aufruft).
mfg Andreas