Javascript + IE + Popup, une belle histoire d'amour
Bonjour à tous, j'ai une fonction qui ouvre un pop up centré:
Code:
1 2 3 4 5 6 7 8
| function importQuestions()
{
var w=500;
var h=600;
var haut=(screen.height-h)/2;
var Gauche=(screen.width-w)/2;
var w=window.open('popupImportQuestions.php?id='+tpid,"Import Questions","toolbar=0,menubar=0,location=0,scrollbars=1,top="+haut+",left="+Gauche+",width="+w+",height="+h+",resizable=1");
} |
Qui fonctionne très bien sous FF 3, mais sous IE j'ai une erreur argument invalide au niveau du window.open ...
Auriez vous une idée ?