$(document).keydown(function(e){ key = (e)?e.keyCode:event.keyCode; //alert(key); if(key == 116 || (event.ctrlKey && event.keyCode == 82)) { history.replaceState({}, null, location.pathname); } })
https://java119.tistory.com/m/35
https://ingbeeni.tistory.com/m/entry/jquey-javascript-F5-%EC%83%88%EB%A1%9C%EA%B3%A0%EC%B9%A8-%EB%B2%84%ED%8A%BC-%EB%A7%89%EA%B8%B0