whats wrong with this piece of code?
if say, i check a checkbox, then uncheck it. I go to another page and return, the value should be false, but somehow it always goes to true.Code:var formLen=document.forms[0].length;
var stopNum=formLen-1;
for(var a=0;a<stopNum;a++)
{
document.forms[0].elements[a].checked=getCookie(document.forms[0].elements[a].name);
}
Any checkbox that I check and then uncheck will go back to being checked
ANyone can help?
