<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
thank you! that works too. why do i want to use the other method? <br>
<br>
amol k wrote:
<blockquote cite="mid4e4c9728050329112366435885@mail.gmail.com"
 type="cite">
  <pre wrap="">Replace 
var button = document.createElement("button");
with 
var button = document.createElement("input");
and it should work.

Amol Katdare

On Tue, 29 Mar 2005 06:58:54 -0600, judah <a class="moz-txt-link-rfc2396E" href="mailto:judah@drumbeatinsight.com">&lt;judah@drumbeatinsight.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I can't create a button with a label. What am I doing wrong?

function createButton() {
   var button = document.createElement("button");
   button.value = "Hello Kitty1";
   button.label = "Hello Kitty2";
   button.style.label = "Hello Kitty3";
   button.style.value = "Hello Kitty4";
   button.name = "Hello Kitty5";
   button.text = "Hello Kitty6";
   button.type = "button";
   button.id = "hello";
   button.style.width = 120+"px";
   button.style.height = 20 + "px";
   document.body.appendChild(button);
}

Judah

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 3/27/2005

_______________________________________________
Javascript mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->_______________________________________________
Javascript mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</a>


  </pre>
</blockquote>
<br>
</body>
</html>