Do the testing right after the iframe element is appended