1
function setPrint(callback) {
var obj = setInterval(function () {
var frame = $('#WindowFadeiFrame').get(0).contentDocument;
var btn = $('#btn', frame);
console.log('not found');
console.log('found now');
}, 100);
}
setPrint(callback)
function callback() {
// write all your code here which need to be executed after finding the control from iframe
alert('');
}
0
setPrint();
alert("hi");
i don't want to call alert('hi) until not get button and click it.
setPrint() is nested function, so it call itself until not get button.
0
sir try to provide 1000 insted of 100