I have a script that should open a section of a webpage and save the changes to Ctrl + n and Ctrl + s. I'm sure it works in IE, but it does not work in firefox and chrome, Any ideas?
My ride function.
function prevent(e) { try{e.stopPropagation();}catch(ex){} try{e.preventDefault()}catch(ex){} try{if (e.preventDefault) e.preventDefault(); else { e.cancelBubble = true; e.returnValue = false; e.keyCode = 0; }} catch(ex){} }
javascript html firefox google-chrome
wolfcall
source share