I have this finction:
var msec = 100;
setInterval(function () {
if (childNodeDocument.readyState == "complete") {
parent.parent.mapFrame.hideModal;
alert("complete");
clearInterval();
}
}, msec);
when this condition is satisfied:
childNodeDocument.readyState == "complete"
I want to stop executing setInterval().
But the way I am doing above not working.
Any idea what I am missing?