Setting the Focus in .net 1.1

Last post 07-11-2007 9:04 AM by AndrewSeven. 1 replies.

Sort Posts:

  • Setting the Focus in .net 1.1

    07-11-2007, 8:21 AM
    • Member
      294 point Member
    • flyingfishnm
    • Member since 12-27-2004, 11:08 AM
    • London, England
    • Posts 101

    Hi

    I have an online survey where the user will select answers using radio buttons. On the bottom of the page I have a 'previous' and 'next' buttons. I have a bit of javascript which sets the focus when the page is made visible and this works fine, but as soon a radio button is selected the focus, i.e. the black surrounding line of the button, moves to the 'previous' button!

    In the html the previous button comes before the next button.

    Why does this happen?

     Thanks for any insights

     
    Davej
     

  • Re: Setting the Focus in .net 1.1

    07-11-2007, 9:04 AM
    Answer
    • Contributor
      2,184 point Contributor
    • AndrewSeven
    • Member since 02-06-2004, 2:05 PM
    • Posts 437

    The focus should go to the radio button when you click select it.

    It sounds more like the default html button being the 'previous' button. The first button in the html will be treated as the default button to use if the user hits enter.

     

     

     

Page 1 of 1 (2 items)