I'm trying to make a div element "focusable" in Mozilla (in IE, it's as simple as defining a tabindex property). I didn't think it was possible until I came across the -moz-user-focus style property. I've been trying to use that with no success (what does that property accomplish?). Is it possible to make a div focusable through tabs?
Sample code:
<html><body>
<div style="background-color: red; -moz-user-focus: normal;" onfocus="alert('focused')" tabindex="5">
text
</div>
</body></html>
Thanks for any help.:focus whether it will work on a div is questionable.If Robert's idea doesn't work, you could always use block-level links I suppose.
Sample code:
<html><body>
<div style="background-color: red; -moz-user-focus: normal;" onfocus="alert('focused')" tabindex="5">
text
</div>
</body></html>
Thanks for any help.:focus whether it will work on a div is questionable.If Robert's idea doesn't work, you could always use block-level links I suppose.