Paul: Größe verändern

Beitrag lesen

Hallo,
ich möchte per js die Größe eines <div> verändern. Habe mir folgendes gedacht:

<html>
<head>
  <script type="text/javascript">
     document.Testform.getElementById("ddiv").style.height = "600";
     document.Testform.getElementById("ddiv").style.width = "600";
  </script>
</head>
<body>
  <form name="Testform">
    <div id="ddiv" style="height:400px; width:400px; background-color:#cccccc">
    </div>
  </form>
</body>
</html>

Leider läuft's nicht. Wie bekommt man das hin?

Danke,
Paul