Hi,

My content script creates a checkbox OK, but when I try to manually
change the state, nothing happens. Here's the code:

var tables = document.getElementsByTagName("table");
var checkbox_tbl = tables[tables.length - 2];

var vmc_row = document.createElement("tr");
vmc_row.vAlign = "top";
var vmc_element = document.createElement("td");

var vmc_box = document.createElement("input");
vmc_box.id = "vmc";
vmc_box.type = "checkbox";
vmc_box.name = "vmc";
vmc_box.checked = "checked";

var vmc_label = document.createElement("label");

vmc_label.appendChild(document.createTextNode
("\u00a0\u00a0\u00a0\u00a0Post\u00a0this\u00a0message\u00a0as
\u00a0virtual\u00a0mail\u00a0content"));
vmc_box.appendChild(vmc_label);
vmc_element.appendChild(vmc_box);
vmc_row.appendChild(vmc_element);
checkbox_tbl.appendChild(vmc_row);


Thanks.

Bob

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to