O Javascript não está funcionando no Chrome e no IE, mas trabalhando no Firefox

Aqui está o código javacript que está funcionando perfeitamente no Mozilla, mas não funciona perfeitamente no IE e no Chrome.

function updateTable(tableID) 
{ 
    alert('inside the update'); 
    var arrayTemp=new Array();
    var str='';
    var arraycount=0;
    try {
        var table = document.getElementById(tableID);
        var rowCount = table.rows.length;

        for(var i=0; i<rowCount; i++) {
            var row = table.rows[i];
            var chkbox = row.cells[4].childNodes[0];                
            if(null != chkbox && true == chkbox.checked) {

           str+=  document.getElementById("flag"+i).value;
           str+=',';
           str+=  document.getElementById("Selected"+i).value;
           str+='`';




            } 

        }
        document.forms[0].updatearray.value=str;
        alert(' value is '+document.forms[0].updatearray.value);
        document.forms[0].submit();

        alert('Checkingdddddd');
    }catch(e) {
        alert(e);
    }
}

Aqui, os formulários não estão sendo enviados no IE e no Chrome.Por favor, diga se há algum remédio para isso.

Eu testei e achei que document.forms ("formname"). Submit () está funcionando apenas para chrome e IE, mas se eu usar document.forms ["formname"]. Submit ele não está funcionando no chrome e IE bastante estranho, um bom conselho de um grande mágico de javascript é necessário

questionAnswers(1)

yourAnswerToTheQuestion