<button id=burg>бургер</button>
<script>
var burg= document.getElementById('burg');
function ds() {
if(!this.locked) window.onscroll = function() {return false;};
else this.removeEventListener('click', ds);
burg.locked=1;
}
burg.addEventListener('click', ds);
</script>
function ds() {onscroll = function() {return false;}}
бургер.addEventListener('click', ds)
бургер.removeEventListener('click', ds);
client.onreadystatechange = function() {
if(this.readyState == this.HEADERS_RECEIVED) {
console.log(client.getResponseHeader("Content-Type"));
}
}
client.onreadystatechange = function() {
if(this.readyState == 4) {
console.log(client.getResponseHeader("Content-Type"));
}
}