473,387 Members | 1,545 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.

AccessKeyCode for Alt+s

Hi,
I am facing a problem to get key code when the user presses alt + s keys. actually i am calling a js method from jsp. for ex:

In jsp:

onClick="setTimeout('handleButtonClick('SAVE');',5 00);" accesskey="S">


and inside the js where 'handleButtonClick() i am trying to get the accesskey code. Always its giving me as 0. do i need to pass any info to the 'handleButtonClick() when an event is raised. please help me out....

Regards,
Sahithi.
Mar 13 '07 #1
4 2050
r035198x
13,262 8TB
Hi,
I am facing a problem to get key code when the user presses alt + s keys. actually i am calling a js method from jsp. for ex:

In jsp:

onClick="setTimeout('handleButtonClick('SAVE');',5 00);" accesskey="S">


and inside the js where 'handleButtonClick() i am trying to get the accesskey code. Always its giving me as 0. do i need to pass any info to the 'handleButtonClick() when an event is raised. please help me out....

Regards,
Sahithi.
Javascript?
Let me move you to the Javascript forum.
Mar 13 '07 #2
acoder
16,027 Expert Mod 8TB
See this page. Also, to detect whether the alt key was pressed, use evt.altKey, see link.
Mar 13 '07 #3
See this page. Also, to detect whether the alt key was pressed, use evt.altKey, see link.
Hi,
it worked. and thanks alot for hepling me. thanks for the needful.

Regards,
sahithi.
Mar 27 '07 #4
acoder
16,027 Expert Mod 8TB
You're welcome.
Mar 27 '07 #5

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

Similar topics

1
by: Tim Daneliuk | last post by:
Arrrrrggg. I have a program that runs comfortably across both Unix variants and Windows ... except .... I wish to bind an Alt-ButtonRelease-3 combination to popup a menu. This works flawlessly...
2
by: Rick | last post by:
how would you create a function in the following script that would change the alt description of the image via a mouseover event. See end of script. Thanks in advance. RICK <script...
6
by: Olly | last post by:
I've found a basic script, however I also need to add alt and title attributes as well, how would I go about doing this? Here's the script I found: Thanks <script language="JavaScript"> <!--...
6
by: Litron | last post by:
This question borders between HTML and JS. I would like to have one ALT tag for a Button (IMG src link) when the user creates an onMouseOver event and a second Alt tag displayed onMouseOver if...
8
by: Lian | last post by:
Hi all, It is a newbie's question about html tag "img". The attributes "title" and "alt" for "img" seems having the same function. So what is the main difference between them? Can i use them at...
39
by: fleemo17 | last post by:
I'm wondering whether it's better to leave an alt tag blank (alt=" ") or specify something like "alt='spacer'" when referring to objects that merely help the layout of the page? -Fleemo
1
by: Garmt de Vries | last post by:
On my pages, I use a couple of images (with appropriate alt texts of course) for decoration purposes. For example: <p> Blablabla about some topic.<br> <a href="foo.html"> <img src="see.gif"...
4
by: Adam J. Schaff | last post by:
How can I issue an Alt+Tab command from within VB.NET code? Specifically, I am trying to swap to the next application in the Alt+Tab order in a way that is reversible with a single Alt+Tab to get...
6
by: David Stone | last post by:
I have a simple question about the alt content of area elements within an image map: is it redundant to include phrases such as "link to..." or "jump to..."? My initial thought is 'yes', since...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.