quando si accede ad un iframe tramite l' id
document.getElementById('idiframe')
l' oggetto window in questione non e' window, ma contentWindow, quindi
if
e dovrebbe funzionare in tutti i browser aderenti agli standardcodice:(document.getElementById('idiframe').contentWindow.document.form1.figliodi.value.length == 6) {
ciao