Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/04/2007, 01:52
Avatar de Shade
Shade
 
Fecha de Ingreso: noviembre-2006
Mensajes: 262
Antigüedad: 18 años, 2 meses
Puntos: 1
"if y else" en iframe

Hola a todos.
Tengo una funcion la cual quiero que tenga diferentes valores segun esta en un iframe o no...

Lo que yo he hecho ahora mismo es esto:
Código:
var isIframe = 0;
if (parent.document.body.getElementById(iframechorga)) isIframe = 1;

function blahblah {
 if (iFrame = 1) {
    blahblahblah
}
else {
   blehblehbleh
}
}
El problema es que cuando no esta el iframe con id iframechorga me tira:

i_multibuscador is not defined

Y se carga el javascript. Como podria llegar a hacer?

Muchisimas gracias por su tiempo.