Possible Duplicate:
how to stop “setInterval”
How can I stop following setInterval function in to else condition
setInterval(function () {
if ($('#iframe1').is(':visible')) {
} else {
/// Here i want clear setInterval
}
}, 200);