-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, everyone.
Simply, i need to disable the back/forward browser button events, so they will do nothing. How can i do this?
Thanks
Nilsonhp
used this script : --
<![CDATA[
(function($) {
$.fn.extend({
disableBackKey: function() {
$(window.document).keydown(disableBackInnerFunc);
}
});
function disableBackInnerFunc(event) {
var e;
if ($.browser.msie) { e = window.event; } else { e = event; }
var elid = $(document.activeElement).is('input[type="text"]:focus, textarea:focus');
if (e.keyCode == 8 && !elid) { return false; }
};
})(jQuery);
$.fn.disableBackKey();
]]>
how to disable back and forward and refresh in javascript,need code for this ?
As we always say: No can do! You can hide the tool bar, but they always have the control arrow keys,
you can use this: but you are not actually disabling it. You can use a meta tag to disable the page if it has be refreshed, but that is about all. You can search the forums and see this has been discused many times Eric
Asked: 2013-04-02 18:34:29 +0800
Seen: 70 times
Last updated: Apr 06 '13
Facing issue in masking on phone [closed]
coerceFromString_ override no longer works from 6.5.1 [closed]
Execute Javascript on component visible
Is there a way to resolve view model properties as input to client side javascripts?
scrollbar listner for 2 grid [closed]
Theme javascript wpd file not found