<script type="text/javascript"> document.onkeyup = Esc; function Esc() { var KeyID = event.keyCode; if (KeyID == 27) { if ($find("mpForLeave")) { $find("mpForLeave").hide(); } } }
<script type="text/javascript"> $(document).keyup(function(e) { if (e.keyCode == 27) { $find("mpForLeave").hide(); } }); </script>
function overrideKeyboardEvent(e){ if(e==null) { e=window.event; } switch(e.type){
if (e.keyCode == 27) { $find("mpForLeave").hide(); // now you are getting here error instead you can use $("#uridofelement").hide(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)