JavaScript Reference/Javascript Methods/isEqual
Версия от 18:30, 25 мая 2010; (обсуждение)
"isEqual()" Example
<html>
<body>
<script language="JavaScript">
function function1(){
var myRange1 = document.body.createTextRange();
var myRange2 = myRange1.duplicate();
alert(myRange1.isEqual(myRange2));
}
</script>
<p>This is some sample range used in comparison</p>
<button onclick="function1();">IsEqual</button>
</body>
</html>
"isEqual()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |TextRange |
+----------------+--------------------------------------------------------------+
"isEqual()" Syntax, Parameters and Note
Note:
Is a given range equal to a second range.
Returns true or false.
Syntax:
textRangeName.isEqual(param1)
Parameters:
param1 Required; a second text range.