Access Key in not working... in ASP.Net code...

G

Gill Smith

My Access Key is not working in the below code.

<TD align="left" width="25%"><A href="javascript:OpenSearch()"
accesskey="L"><IMG src="Images/MySeach.gif" align="left"
border="0"></A></TD>

Is there any error in this code ?
Gill
 
S

Steve C. Orr [MVP, MCSD]

I assume you actually have a javascript function in your page named
OpenSearch?
 
K

Kevin Spencer

All this code is is HTML and JavaScript. As such, it contains no
identifiable error, unless there is no JavaScript function named
"OpenSearch()", or if it isnide an improperly formatted HTML table. However,
I am very curious as to what you think the "accesskey" attribute you've
added to your href is expected to do.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
G

Gill Smith

Thansk for opening my eyes. It works fine.
Just for curious, is there any way clicking of this image button can be
keyboard only ? No mouse click.
Gish
 
K

Kevin Spencer

You could capture the key input using JavaScript in the browser, and
identify a key that you want to invoke that function, and do so. Sure.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
ClayE7480

Latest Threads

Top