There is no onload event, I can not understand why?
<script> ... var toremReq = new XMLHttpRequest(); toremReq.open("post", "https:xxx/barcoderequest.php", true); toremReq.onprogress = function () { console.log('ONPROGRESS', toremReq.status); alert('ONPROGRESS'); }; toremReq.onload = function () { console.log('ONLOAD', toremReq.status); alert('ONLOAD'); }; toremReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8"); toremReq.send(null); ... </script>