Suat Özgür: Weiterleitung über meta-refresh in <noscript>

Beitrag lesen

<head>
  <noscript>
    <meta http-equiv="refresh" content="0; url=index-no-js.php">
  </noscript>
</head>

alternativ möglich wäre z.B. sowas wie:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 <title>Javascript-Weiche</title>
 <script language="JavaScript" type="text/javascript">
   function redirect() {
      self.location.href="index-js.php";
   }
 </script>
 <meta http-equiv="refresh" content="2; url=index-no-js.php">
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 </head>
 <body onLoad="redirect();">
 </body>
</html>

ist dann auch w3c-konform.

Gruß

sui