Home | Top | Website design | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets the end position of a Range relative to another Node.
The setEndBefore() method takes the following parameters:
referenceNode The Node to end the Range before
range = document.createRange(); referenceNode = document.getElementsByTagName("div").item(0); range.setEndBefore(referenceNode); |
The parent Node of end of the Range will be the same as that for the referenceNode.
Home | Top | Website design | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |