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

S

Stefan Mueller

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
 
J

Jonathan N. Little

Stefan said:
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.'
 
J

Jonathan N. Little

Stefan said:
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.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top