Bonjour,
alors voilà j'ai créé une iframe en javascript grace à cette fonction :
function create_formulaire() {
var ifr = document.createElement('iframe');
ifr.src= "create_thematic.php";
document.body.scroll = 'no';
document.body.appendChild(ifr);
ifr.style.position = 'absolute';
ifr.style.marginLeft='30%';
ifr.style.marginTop='18%';
ifr.style.backgroundColor='#523652';
ifr.style.width = ifr.style.height = '40%';
ifr.style.top = ifr.style.left = 0;
ifr.style.border = 1;
}
A présent je cherche à fermer cette iframe. J'ai pensé à cela :
function close_formulaire() {
document.getElementById('nom_de_ton_id').style.display='none'
}
mais je n'ai pas donné d'id à mon iframe ... je ne sais pas comment faire ..
Merci de votre aide
La Lutine !