[Javascript] cant create a button with a label

judah judah at drumbeatinsight.com
Tue Mar 29 06:58:54 CST 2005


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




More information about the Javascript mailing list