The select event fires when the user selects text in a text input. It should also fire when the user selects text elsewhere.
But when does this event fire?
| Event | IE 5.5 | IE 6 | IE 7 | IE8rc1 as IE7 | IE8rc1 as IE8 | FF 2.0 | FF 3.0 | FF 3.1b2 | Saf 3.0 Win | Saf 3.1 Win | iPhone 3G | Chrome 1.0 | Opera 9.62 | Opera 10a | Konqueror 3.5.7 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
On the window
|
No | Yes | Yes | Untest |
Yes | Minimal | No | ||||||||
|
Is this event available on the window?
|
|||||||||||||||
|
On the document
|
No | Yes | Yes | Untest |
Yes | Yes | No | ||||||||
|
Is this event available on the document? |
|||||||||||||||
|
On a form
|
No | Yes | Yes | Untest |
Yes | Yes | No | ||||||||
|
Is this event available on a form? |
|||||||||||||||
| Event | IE 5.5 | IE 6 | IE 7 | IE8rc1 as IE7 | IE8rc1 as IE8 | FF 2.0 | FF 3.0 | FF 3.1b2 | Saf 3.0 Win | Saf 3.1 Win | iPhone 3G | Chrome 1.0 | Opera 9.62 | Opera 10a | Konqueror 3.5.7 |
|
On text inputs
|
Yes | Yes | Yes | Untest |
Yes | Yes | No | ||||||||
|
The point of this event. |
|||||||||||||||
|
On any element
|
No | No | No | Untest |
No | No | No | ||||||||
|
It stands to reason that selecting text on any element (such as a paragraph) should also fire the event. When that happens, pass the resulting Range object as a property of the event object, please. Browsers universally disagree with this idea. |
|||||||||||||||
|
Event bubbling
The event should bubble. |
Untest |
Yes | Yes | Untest |
Yes | Almost | Untest |
||||||||
|
|||||||||||||||
|
Prevent default
“No” is the correct answer
|
No | No | No | Untest |
No | No | Untest |
||||||||
|
The default action cannot be prevented. |
|||||||||||||||
| Event | IE 5.5 | IE 6 | IE 7 | IE8rc1 as IE7 | IE8rc1 as IE8 | FF 2.0 | FF 3.0 | FF 3.1b2 | Saf 3.0 Win | Saf 3.1 Win | iPhone 3G | Chrome 1.0 | Opera 9.62 | Opera 10a | Konqueror 3.5.7 |