javascript selection selectAllChildren( )
@March 15, 2008, 1:22 a.m.
selectAllChildren( ) | Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM n/a |
selectAllChildren(elementNodeReference) | |
Forces the selection object to encompass the element node passed as a parameter and all of its child nodes. This method is also a shortcut to using a script to select an element node. Using this method on an element node causes the anchor and focus nodes to be that element node. Should you pass a reference to a text node, the resulting selection is collapsed in front of the first character of the text node. Invoking this method on an existing selection replaces all ranges with the new range encompassing the element. |
|
Parameters | |
|
|
Returned Value | |
None. |
Powered by Linode.