javascript selection type
@March 15, 2008, 1:22 a.m.
type | Firefox/Netscape/NN n/a IE 4(Win) Chrome/Safari/DOM n/a |
Read-only | |
Specifies whether the current selection object has one or more characters selected or is merely an insertion point. |
|
Example | |
if (document.selection.type == "Text") { ... } |
|
Value | |
One of three constant values (as a string): None | Text | Control. The last one is possible only when HTML editing is engaged and control selections are possible. |
|
Default | |
None |
Permanent URL:
http://javascript.gakaa.com/selection-type.aspx
Powered by Linode.