Ragazzi non riesco a lanciare un popup da dentro una funzione readystate. Come posso fare? Cosa sbaglio?
codice:if(xmlhttp.readyState == 4 && xmlhttp.status == 200) { response = xmlhttp.responseXML; wid = response.getElementsByTagName("answer")[0].getAttribute("wid"); alert("Your war has been succesfully created!"); height = 600; width = 950; l = Math.floor((screen.width-width)/2); t = Math.floor((screen.height-height)/2); window.open("pollo.php?wid=" + wid, "", "width=" + width + ",height=" + height + ",top=" + t + ",left=" + l); }

Rispondi quotando