[POO] Document.open dans IE7 ne marche plus ?
Bonjour à tous,
Depuis que j'ai installé IE7, le code suivant ne fonctionne plus :
Code:
1 2 3 4 5 6 7 8 9
| function displayData(){
dataWindow=open('','','toolbar=0,directories=0,menu=0,scrollbars=1,location=0,resizable=1,status=0,top=400,left=300,width=600,height=200,menubar=0,dependent=1,hotkeys=0');
dataWindow.document.open();
dataWindow.document.write("<HTML><HEAD><TITLE>Mon titre");
dataWindow.document.write("</TITLE></HEAD><BODY onBlur='window.close();' style='font-family: Arial;'>");
dataWindow.document.write("bla bla bla");
dataWindow.document.write("</BODY></HTML>");
dataWindow.document.close();
} |
La fonction est appelée de la manière suivante (en svg) :
Code:
<g onclick="displayData();">
J'obtiens l'erreur (Script error) suivante :
Citation:
Accès refusé.
Ligne 3045, column 0
Ce code fonctionne avec les versions antérieures de IE.
Quelqu'un peut-il m'aider ?
MercI.