Community
Participate
Working Groups
function CreateHTTPRequestObject () { var activeX = (window.ActiveXObject && location.protocol === "file:"); if (window.XMLHttpRequest && !activeX) { return new XMLHttpRequest(); } else { try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} } alert ("Your browser doesn't support XML handling!"); return null; } Getting unreachable code warning on these lines: alert ("Your browser doesn't support XML handling!"); return null;
Same problem as 401136 *** This bug has been marked as a duplicate of bug 401136 ***
not a duplicate try catch is different than for loop case. try catch case has been fixed.