Buenas amigos, tengo un gran problema, quiero hacer un javascript q haga un iframe dinamico, bueno; lo he logrado! pero en FF me da problemas, es como si guardara un cache, me abre siempre la misma pagina asi cambie el SRC del iframe
uso este codigo
API.js
Código javascript
:
Ver originalAPI = 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? :(