$(document).bind("keypress keydown keyup", function(e) {
if(e.which === 116) {
return false;
}
if(e.which === 82 && e.ctrlKey) {
return false;
}
});
第二種是比較好的方法,連上一頁跟下一頁都能一起觸發
$(window).bind('beforeunload', function() {
return "Are u sure to reload?";
});
沒有留言:
張貼留言
留個話吧:)