If you are doing something like this:
========================================
========================================
<body bgcolor="#ffffff" text="#000000">
<form>
<div id="foo"></div>
</form>
<script language="JavaScript"><!--
document.getElementById("foo").innerHTML='<input type="checkbox"
value="1"><input type="checkbox" value="2"><input type="checkbox"
value="3"><input type="checkbox" value="4">';
function getChecked(oForm) {
var el, i = 0;
while (el = oForm.elements[i++]) if (el.type ==
'checkbox')alert(el.value);
}
getChecked(document.forms[0])
//--></script>
</body>
========================================
========================================
That works fine on both my IE6 and Firefox 1.0.7
So I an't see where your problem comes from. perhaps a more complete
example would help.
innerHTML is considered "deprecated" (comparatively, one of the most
controversial decisions ever). Yet no gen 5 browser I know of has
dropped support for it or palns to drop it, likewise they do not plan
to drop support for FONT.
I personally go on using it as one of the fastest ways to read the html
contents of a layer, and also one of the most convenient ways to write
onto it not too complex html formattings.
ciao
Alberto
http://www.unitedscripters.com/