Not working accesskey in html

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kiranbabu
    New Member
    • Jun 2009
    • 10

    Not working accesskey in html

    This code is not working please any one help me,when i am using alt+N to focus into nametextbox and alt+E for emailtextbox and alt+P for phonetextbox.pl ease send me corrext one to focus into textboxes by pressing accesskeys example


    Code:
    <FORM>
    
    <LABEL FOR="Namebox" ACCESSKEY="N"><U>N</U>ame:</LABEL>
    <INPUT TYPE="TEXT" ID="Namebox" SIZE=30>
    
    <LABEL FOR="Emailboxbox" ACCESSKEY="E"><U>E</U>mail:</LABEL>
    <INPUT TYPE="TEXT" ID="Emailbox" SIZE=30>
    
    <LABEL FOR="Phonebox" ACCESSKEY="P"><U>P</U>hone:</LABEL>
    <INPUT TYPE="TEXT" ID="Phonebox" SIZE=30> 
    </FORM>
    Last edited by Dormilich; Feb 17 '10, 11:09 AM. Reason: moved to HTML forum
  • zorgi
    Recognized Expert Contributor
    • Mar 2008
    • 431

    #2
    You shoud put your access keys into input tags not into the labels.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      you are aware that different browsers use different keys with the letters (e.g. some use [crtl])

      Comment

      Working...