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

  • Thread starter Thread starter Gill Smith
  • Start date Start date
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
 
I assume you actually have a javascript function in your page named
OpenSearch?
 
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.
 
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
 
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.
 
Back
Top