try {
} catch(Exception) {
}

解决方案 »

  1.   

    <html>
    <head>
    <title></title>
    <SCRIPT LANGUAGE="JavaScript1.2">
    function getTable() {
    try {
    for(var i=1;i<3;i++){
    document.all.txt[i].value ="test";
    }
    alert("1");
    }catch(Exception) {
    alert(2);
    }
    }
    </SCRIPT>
    </head>
    <body>
    <table id="tbl">
    <tr>
    <td>
    <input type="text" id="txt" onblur="getTable();">
    </td>
    </tr>
    </table>
    </body>
    </html>
      

  2.   

    下面的Javascript在Lotus Notes 5.05 版本无法通过function closeWindow(){
    try{
    newwindow.close;
    alert("OK");
    }
    catch(Exception){
    alert(Error.description);
    }
    }
      

  3.   

    Lotus Notes 5.05没用过.IE5.0通过了.