Message from JavaScript discussions

March 2019

— I misread

— 

document.addEventListener('keydown', e => {
if (e.key !== 'F5') return;
e.preventDefault();
location.href = '/Login.html';
return false;
});

— Thk

— Keep in mind that anything on the frontend is not security

— People will still be able to access Admin.html

— => used for?

— Or user click on refresh icon on browser

— Function definition

— Or user click on refresh icon on browser. ?

— Same things:

e => {
// ...
}

function (e) {
// ...
}

— Not understand

— Uhhh