javascript selection clear( )
| clear( ) | NN n/a IE 4(Win) DOM n/a |
|
Deletes the content of the current selection in a document. For example, the event handler in the following tag deletes any selected text of the p element two seconds after the user starts making the selection: <p onselectstart="setTimeout('document.selection.clear( )',2000);>"
|
|
| Parameters | |
None. |
|
| Returned Value | |
None. |
|
Previous: javascript selection collapse( )
1745,Nickname,Homepage or email,Comments here,Add comment
