reading the checkbox status in IE using Javascript
<p>I have some javascript that on page load reads a group of check boxes checking their checked status. If the checkbox is checked then a value is added to an array which is later used.</p>

<pre><code>var _chkBoxes = document.getElementsByName("chkProduct");
var _chkBoxesLen = _chkBoxes.length;
var _chkArray = [];

for (var i = 0; i &lt; _chkBoxesLen; i++) {

    if (_chkBoxes[i].checked === true) {
        _chkArray.push(_chkBoxes[i].id.split("-")[1]);
        console.log(_chkArray);
    }
}
</code></pre>

<p>This works fine for all browsers when the page is freshly loaded.</p>

<p>However in IE if a user ticks some boxes, navigates to another page then pushes the back button then this work does not recognise that checkboxes have been previously checked, even though on the page they are.</p>

<p>Is this a bug with IE and whats the fix, any opinions appreciated!</p>
