xgqfrms / FEIQA

FEIQA: Front End Interviews Question & Answers
https://feiqa.xgqfrms.xyz
MIT License
7 stars 0 forks source link

forbidden user mouse click event #96

Open xgqfrms opened 5 years ago

xgqfrms commented 5 years ago

forbidden user mouse click event

https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events

https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events



.btn{
  pointer-events: none;
  cursor: not-allowed;
}
xgqfrms commented 5 years ago

https://github.com/haizlin/fe-interview/issues/1501#issuecomment-554184003

xgqfrms commented 5 years ago

URL checker

https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer

document.referrer;
// "https://github.com/haizlin/fe-interview/labels/js"

window.location.href;
// "https://github.com/haizlin/fe-interview/issues/1478"