473,387 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ASCII value of enter and alt keys onkeypress

40
How to get the ascii value of enter key using javascript events?
Nov 27 '08 #1
4 7920
acoder
16,027 Expert Mod 8TB
Check that the keyCode is 13.
Nov 27 '08 #2
divyac
40
I just want to call an ajax function on pressing the enter key and alt key.since i have a submit button,the form gets submitted if i press enter.Instead,an ajax function should be called when i press enter or alt.Also,i just want to do it with the help of ASCII values of those two buttons on keypress event.Help me!!
Nov 27 '08 #3
acoder
16,027 Expert Mod 8TB
Threads merged. Please formulate your questions properly and do not double post your questions.

Moderator.
Nov 27 '08 #4
acoder
16,027 Expert Mod 8TB
For the alt key, use the altKey property. For more information, check out the example links on this page.
Nov 27 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: FredSP | last post by:
I have a client who wishes to use the Enter Key and/or Arrow Keys, as well as the Tab Key, to navigate between Fields in a Windows form. Is this possible using C# in Visual Studio 2000 ?
1
by: Robert Nurse | last post by:
Hi All, I've got a form which I'm trying to submit automatically when the user has entered 2 or more characters in a text imput box. Here's my set up: <SCRIPT language="JavaScript1.2">...
5
by: b.stewart | last post by:
I have only been using C++ for a few afternoons and i still get confused at nearly every line i type so maybe someone here can help me. Im trying to write a small program that can change a...
2
by: Vishwanathan Raman | last post by:
Hi I am building a Search Interface.It has two text boxes (box1 and box2) and two buttons (btnbox1 and btnbox2) in the ASPX page. Example User keys in a search text in box2 and presses the...
2
by: foo | last post by:
Hello, I can trap alphanumeric keys wih this code but the event doesn't even fire when a page down, page up, home, end is pressed. I've overloaded the OnKeyPress event for the form. The event...
1
by: pazabo | last post by:
Hi, Does anybody know why doesn't onkeypress catch up/down arrow keys while it catches left/right arrows? My only supposition is that up/ down keys are used for moving between form elements,...
18
by: Zytan | last post by:
I want the same function to be run whether you press Enter or double click the listbox. It seems really verbose to write both handlers to both events everytime, even if they both call the same...
1
by: SAM | last post by:
Evertjan. a écrit : Not working on my Mac :-( (FF2, Safari2) keys with keyCode 48 to 57 need the shiftkey in addition to get a number from alpha keyboard - works with Safari - not with F2...
5
by: hannie | last post by:
onKeyPress does not work in Firefox. If use tab to navigate each field and press "Enter" on "Next" button to submit form and process to the next form / page, IE works well even if without onKeyPress...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.