Entra

View Full Version : [Javascript] Aprire finestra popup con Safari


Haf24
04-05-2016, 06:07
Questo codice mi apre il popup con Chrome, Firefox e Opera, con Safari apre la finestra grande come il monitor.

function guest() {
var w = 800;
var h = 600;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
window.open("guestbook/formG.php","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}