Javascript Reference
Categories: selection

javascript selection type

@March 15, 2008, 1:22 a.m.
typeFirefox/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


Powered by Linode.