puoi usare
document.getElementsByTagName("iframe")[0] = primo iframe nel caso ci siano + di un iframe