Our application has a requirement that users are not allowed to refresh the web page using F5.
I implemented the solution here , however I just discovered that this does not work inside the iframe on the page.
An IFrame is generated using the telerik TV control unit.
I tried the following on my page containing a radio editor.
$(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 does not work.
Is there anything special in the iframe that I am missing?
source
share