Added option to use setInterval in the iFrame