Bonjour

J'ai un évenement onclick sur un <a href > qui me fait apparaitre une iframe
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
function showIntelliTxtDemo (loadSite)
{
    iTt.style.visibility = '';
    iTt.innerHTML = '<iframe style="zoom:1" height="60"  width="200" src="'+loadSite+'"  frameborder ="no" scrolling="no" />'
    iTt.style.left = mouse_x()+10;
    if (iTt.offsetLeft < 0) iTt.style.left = 0;
    if (iTt.offsetLeft + (iTt.offsetWidth ) > screen.availWidth) iTt.style.left = screen.availWidth - (iTt.offsetWidth) - 20;
    iTt.style.top = mouse_y() ;
}
Ce que j'aimerai, c'est avoir un 2e évènement qui me ferme la fenetre qd on clique n'importe ou sur la page... Est-ce possible?
J'ai bien
Code : Sélectionner tout - Visualiser dans une fenêtre à part
    m_ID = window.setTimeout("iTt.style.visibility='hidden';", timeOut);
qui rend invisible l'iframe mais ca fonctionne sur un time out :s
Ca doit etre assez bête à faire mais bon le javascript et moi ca fait 2
Merci