Save? Really?
-13
Just confirms if the user really wants to save the page or just hit the Ctrl+S accidentally. Works in FF maybe in IE too.
<html>
<head>
<script type="text/javascript">
function captureSave(e){
e = e || window.event;
if(e.ctrlKey && e.keyCode == 83){
var saveconf = window.confirm("Are you sure you want to save??");
if(saveconf){
return true;
} else {
return false;
}
}
}
document.onkeydown = captureSave;
</script>
<style type="text/css">
</style>
</head>
<body>
</body>
</html>






not working in IE7 and ff1.0x also
Regards,
Kumar S
GuyFromChennai.com