uso este codigo
API.js
Código javascript:
Ver original
API = function() { this.IE = (document.all)? true:false; this.Documento = document.body; } API.prototype.Cargar = function(Ancho, JP, Fondo) { Contenedor = document.createElement('div') Contenedor.style.width = Ancho Contenedor.style.backgroundColor = Fondo this.Documento.appendChild(Contenedor) FrameJ = document.createElement('iframe') FrameJ.name = 'juegos' FrameJ.src = 'http://www.google.com' FrameJ.width = '500' FrameJ.height = '400' Contenedor.appendChild(FrameJ) }
index.html
Código javascript:
Ver original
<script src="http://www.pagina.com/API.js" type="text/javascript"></script> <script> J = new API(); J.Cargar('600','4','#000000'); </script>
Funciona perfectamente pero cuando cambio el src y actualizo continua saliendo google.com, esto solo me ocurre solo en FF
Alguien sabe x q ocurre? :(