DOM:Selection:selectAllChildren
From MDC
Contents |
[edit] Summary
Adds all the children of the specified node to the selection. Previous selection is lost.
[edit] Syntax
sel.selectAllChildren(parentNode)
[edit] Parameters
parentNode- All children of
parentNodewill be selected.parentNodeitself is not part of the selection.
[edit] Examples
footer = document.getElementById("footer");
window.getSelection().selectAllChildren(footer);
/* Everything inside the footer is now selected */