SitePoint Sponsor |
|
User Tag List
Results 1 to 9 of 9
-
Jul 29, 2003, 08:14 #1
- Join Date
- Sep 2002
- Location
- UK
- Posts
- 573
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
List Item - I want to loose the focus when an option has been clicked.
Hi
I have a list item menu. When the user selects one of the options i don't want it to stay selected (you know when it turns blue in IE).
The reason for this alot of people have the scroll mouses now, and it is annoying when you select something in a drop down menu, then use your scroll mouse to scroll down the page, but you find your still in the drop down menu.
Does this make any sense!
-
Jul 29, 2003, 09:09 #2
- Join Date
- Jul 2003
- Location
- Romania
- Posts
- 49
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
This should do it:
Code:<select name="whatever" onchange="this.blur()"> <option value="aaa">aaa</option> <option value="bbb">bbb</option> </select>
Edit:
It also works in IE6Last edited by m0n5t3r; Jul 29, 2003 at 09:26.
-
Jul 29, 2003, 09:35 #3
- Join Date
- Sep 2002
- Location
- UK
- Posts
- 573
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks for the reply.
I have just copied that code, but it dosen't work. When you select an option it is still hightlighted blue?
-
Jul 29, 2003, 10:20 #4
- Join Date
- Apr 2003
- Posts
- 4,095
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yes, but scrolling won't cause the drop-down list to scroll.
-
Jul 29, 2003, 11:03 #5
- Join Date
- Sep 2002
- Location
- UK
- Posts
- 573
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
it does if you have a scroller on your mouse
-
Jul 29, 2003, 11:10 #6
- Join Date
- Apr 2003
- Posts
- 4,095
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Not with the blur(); it won't.
-
Jul 30, 2003, 02:01 #7
- Join Date
- Sep 2002
- Location
- UK
- Posts
- 573
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Believe me it does! I copied that exact code, viewed the page click on on eof the drop down options and voila it remained blue (selected).
-
Jul 30, 2003, 03:26 #8
- Join Date
- Apr 2002
- Location
- Salford / Manchester / UK
- Posts
- 4,838
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
it seems to be a bug in IE...
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com
-
Jul 30, 2003, 05:05 #9
- Join Date
- Apr 2003
- Posts
- 4,095
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Then how come it works on my machine? Microsoft Windows XP Professional SP1, Microsoft Internet Explorer 6.
Bookmarks