Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/12/2011, 21:18
Duffing
 
Fecha de Ingreso: mayo-2011
Mensajes: 47
Antigüedad: 13 años
Puntos: 0
Problema de accesibilidad

Hola a todos, resumo rapido mi problema.

Firefox me tira el siguiente error con este script:

Código:
Permission denied to access property 'document'
Solo encontre soluciones puntuales y no con una explicacion, asi que queria pedirles si me podrian explicar porque se deve y como se soluciona.

El codigo:
Código Javascript:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Voting...</title>
  6. </head>
  7. <body>
  8. <a href="#" onclick="change();">Cambiar</a>
  9. <div id="ifr">Por favor instala o hablinita javascript</div>
  10. <script type="text/javascript" />
  11. var site = "http://www.xtremetop100.com/in.php?site=1132315174";
  12. document.getElementById("ifr").innerHTML = '<iframe name="frame" id="frame" src="' +  site + '" width="' + screen.width + '" height="' + screen.height + '" frameborder="0"></iframe>';
  13. function change(){
  14.     window.frames[0].self.document.getElementById("middlec").innerHTML = "ASPER";
  15. }
  16. </script>
  17. </body>
  18. </html>

Desde ya muchas gracias.