frankx: document.forms has no properties

Beitrag lesen

Hellihello Bernd,

  
  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html>  
 <head>  
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  
  <title>Document Forms</title>  
  <link rel="stylesheet" type="text/css" href="css.css">  
  <script type="text/javascript">  
  //<![CDATA[  
  
  Formular_Test=function () {  
   properties="";  
   Formular=document.forms["Formular"];  
   for (i in Formular) {  
   properties += "<li>"+Formular[i]+"</li>";  
   }  
   document.getElementById("Info-Div").innerHTML=properties;  
  }  
  
  
  //]]>  
  </script>  
 </head>  
 <body>  
  <form name="Formular">  
  <input name="Eingabefeld" type="text">  
  </form>  
  <button onclick="Formular_Test()">Formular_Test()</button>  
  <h1>Properties:</h1>  
  <ul id="Info-Div">  
  </ul>  
 </body>  
</html>  
  

funktioniert im FF.

Gruß,

frankx