How to set a tab stop (tabindex) on a image in Opera

Discussion in 'HTML' started by Stefan Mueller, Feb 24, 2006.

  1. The following code works fine in IE and Mozilla however it doesn't work in
    Opera.

    <img src= 'my_pic.gif' tabindex = '0'>
    <input type = 'text'>
    <p>
    <img src= 'my_pic.gif' tabindex = '0'>
    <input type = 'text'>
    <p>
    <img src= 'my_pic.gif' tabindex = '0'>
    <input type = 'text'>

    How can I set a tab stop (tabindex) on a image in Opera?

    I need a focused image e.g. to color a ckeckbox. Here is an example
    http://nrkn.com/customCheck/

    Stefan
     
    Stefan Mueller, Feb 24, 2006
    #1
    1. Advertising

  2. Stefan Mueller wrote:
    > The following code works fine in IE and Mozilla however it doesn't work in
    > Opera.
    >
    > <img src= 'my_pic.gif' tabindex = '0'>
    > <input type = 'text'>
    > <p>
    > <img src= 'my_pic.gif' tabindex = '0'>
    > <input type = 'text'>
    > <p>
    > <img src= 'my_pic.gif' tabindex = '0'>
    > <input type = 'text'>
    >
    > How can I set a tab stop (tabindex) on a image in Opera?
    >
    > I need a focused image e.g. to color a ckeckbox. Here is an example
    > http://nrkn.com/customCheck/


    Look at the spec, tabindex is not supposed to be an attribute of the IMG
    element:

    http://www.w3.org/TR/html4/interact/forms.html#adef-tabindex

    'The following elements support the tabindex attribute: A, AREA, BUTTON,
    INPUT, OBJECT, SELECT, and TEXTAREA.'



    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, Feb 24, 2006
    #2
    1. Advertising

  3. > Look at the spec, tabindex is not supposed to be an attribute of the IMG
    > element:
    >
    > http://www.w3.org/TR/html4/interact/forms.html#adef-tabindex
    >
    > 'The following elements support the tabindex attribute: A, AREA, BUTTON,
    > INPUT, OBJECT, SELECT, and TEXTAREA.'



    Hmmm, does that mean that IE and Mozilla support the tabindex (tab stop)
    also on an image even though it's not defined?

    Stefan
     
    Stefan Mueller, Feb 24, 2006
    #3
  4. Stefan Mueller

    kchayka Guest

    Stefan Mueller wrote:
    >
    > How can I set a tab stop (tabindex) on a image in Opera?


    You can't. Opera only tabs between form fields. Ditto Safari, and
    probably a few other browsers.

    > I need a focused image e.g. to color a ckeckbox. Here is an example
    > http://nrkn.com/customCheck/


    Maybe you should distinguish what you need from what you want.

    --
    Reply email address is a bottomless spam bucket.
    Please reply to the group so everyone can share.
     
    kchayka, Feb 24, 2006
    #4
  5. Stefan Mueller wrote:
    >>Look at the spec, tabindex is not supposed to be an attribute of the IMG
    >>element:
    >>
    >>http://www.w3.org/TR/html4/interact/forms.html#adef-tabindex
    >>
    >>'The following elements support the tabindex attribute: A, AREA, BUTTON,
    >>INPUT, OBJECT, SELECT, and TEXTAREA.'

    >
    >
    >
    > Hmmm, does that mean that IE and Mozilla support the tabindex (tab stop)
    > also on an image even though it's not defined?


    A user agent may choose to do so but it is not part of the standard.

    Mozilla support the wretched MARQUEE element, but it is not part of the
    standard, just foisted upon us by MSIE.

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, Feb 25, 2006
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. LRW
    Replies:
    9
    Views:
    26,440
  2. Bob
    Replies:
    24
    Views:
    1,546
  3. sfp
    Replies:
    1
    Views:
    491
    mrcakey \(The Eclectic Electric\)
    Feb 5, 2007
  4. David Thielen

    Is TabIndex the right way to set the order of controls?

    David Thielen, Feb 27, 2007, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    195
    Steven Cheng[MSFT]
    Feb 28, 2007
  5. George Hester
    Replies:
    6
    Views:
    138
    Grant Wagner
    Jan 2, 2004
Loading...

Share This Page