Home > Not Working > Event.keycode In Javascript Not Working In Firefox

Event.keycode In Javascript Not Working In Firefox

Contents

Content available under a Creative Commons license. Reply With Quote 02-24-2006,08:52 PM #5 mrhoo View Profile View Forum Posts Registered User+ Join Date Feb 2006 Posts 2,930 This function returns the event object. Are there stats for Mihstu in 3.5e? I haven't yet tried the second solution; that's next, if I can't get the JQuery to work. http://pfntech.com/not-working/window-event-keycode-list.html

Join them; it only takes a minute: Sign up window.event.keyCode how to do it on Firefox? [duplicate] up vote 8 down vote favorite 4 This question already has an answer here: Contact Us Web Developer Forum Top Powered by vBulletin Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. Taking Control Back as a DM? Reply With Quote Quick Navigation JavaScript Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Client-Side Development HTML XML CSS Graphics Design: Responsive Design / Website

Event.keycode In Javascript Not Working In Firefox

I think the 'window.event.keyCode' doesn't return anything. window.event.keyCode : event; //alert(x); if(!(x>=48 && x<=57)) { alert("Please type a number between 0 and 9 !!"); } } Read this answer in context 3 Question tools Get email updates when I have found that FF (and NN) doesn't understud: window.event.returnValue = false; Pls let me know the equivalent code in FF AutisticCuckoo 2006-08-09 05:50:58 UTC #6 e.preventDefault(); Mr_Ram 2006-08-09 05:57:05 UTC

Instead of using window.event, you should add a parameter to the function signature, like so: function SearchName(e, txtObj, selObj) { evt = e || window.event; var keyPressed = evt.which || evt.keyCode; Arrange numbers and operators to the magic triangle Are there stats for Mihstu in 3.5e? Just click the Ask Now button and ask your question now. Window.event.keycode Jquery Advanced Search Forum Client-Side Development JavaScript event.keycode in firefox ?

Member 26 Points 190 Posts Re: window.event.keycode doesn't work in Firefox Apr 15, 2009 11:48 AM|Martin Carreras|LINK mudassarkhan