Panshitu Posted July 18, 2011 Report Share Posted July 18, 2011 Hola a todos. Una vez más tengo que recurrir a los warianos para resolver un problema con mi pagina web. Estoy trabajando con iframe, ya que con layers o canales se me hacia muy complicado. En el momento de ingresar a la web, al index obviamente, automaticamente trabajo sobre un iframe, luego desde este mismo iframe llamo a otro iframe... El tema es que dentro de este ultimo iframe tengo un boton VOLVER, con el cual deberia volver al iframe del inicio con el cual parte la pagina. Como puedo sacar ese iframe o cerrarlo... Necesito solucionar este problema de manera rapida y se que ustedes como siempre lo podran lograr. Un abrazo a todos. Link to comment Share on other sites More sharing options...
Ra Posted July 18, 2011 Report Share Posted July 18, 2011 (edited) a los iframe le pusiste id? Si es así, puedes acceder con Javascript <iframe id="padre> <iframe id="hijo"> </iframe> <iframe> un script en el hijo <script blablabla> function cerrarme(){ parent.document.getElementById('padre').removeChild(this); } </script> ...blablabla... <input type="button" value="Volver" onclick="cerrarme();" /> No lo probé... pero debería funcionar o por ahí va la cosa... :tonto: Salu2. Edited July 18, 2011 by Ra Link to comment Share on other sites More sharing options...
Panshitu Posted July 20, 2011 Author Report Share Posted July 20, 2011 solucionado gracias... Link to comment Share on other sites More sharing options...
Ra Posted July 20, 2011 Report Share Posted July 20, 2011 osea... sirvió???? Link to comment Share on other sites More sharing options...
rkstro Posted July 22, 2011 Report Share Posted July 22, 2011 osea... sirvió???? Lo mismo digo, como para cerrarlo digo yo, o que escriba como lo soluciono Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now