SCRIPT
setInterval(function() { document.getElementById("chat").location.href=docu ment.getElementById("chat").src; }, 5000)
PROBLEMA
mi da document.getElementById(...). location è nullo o non oggetto. come devo risolvere ?
SCRIPT
setInterval(function() { document.getElementById("chat").location.href=docu ment.getElementById("chat").src; }, 5000)
PROBLEMA
mi da document.getElementById(...). location è nullo o non oggetto. come devo risolvere ?
<< World and Technology >>
La funzione deve avvenire dopo il caricamento della pagina. Ad esempio:
Prova a verificare che non sia questo il problema.codice:window.onload = function() { setInterval(...) }
Leading the Web to Its Full Potential...
www.pierofix.it | www.w3.org | www.zeldman.com/externals | http://browsehappy.com | www.alistapart.com | www.webstandards.org | www.flickr.com/photos/pierofix/
sembra sia questo quello che cerchi di fare
ciaocodice:setInterval(function() { document.getElementById("chat").contentWindow.location.reload(true) }, 5000);