Our application has a requirement that users are not allowed to refresh a webpage using F5.
I've implemented the solution here however I've just discovered that this does not work inside an iframe on the page.
The iframe is generated from a telerik radeditor control.
I've tried doing the following inside my page containing the radeditor.
$(function () {
$('#<%=RadEditor1.ClientID %>_contentIframe html').bind('keydown', function () {
if (window.event && window.event.keyCode == 116) {
window.event.cancelBubble = true;
window.event.returnValue = false;
window.event.keyCode = 0;
window.status = "F5 is disabled on all popups";
return false;
}
});
});
However it is not working.
Is there something special about iframes that I am missing?