Files
PHPApp/popup.js
2019-03-26 16:08:58 +01:00

14 lines
441 B
JavaScript

function apri(form,car,width,height,nome) {
if(!nome)
nome = 'aa' + (new Date().getTime());
//----------
var win_w = width;
var win_h = height + 0;
var left = Math.floor((screen.width - win_w) / 2);
var top = Math.floor((screen.height - win_h) / 2);
car = car + ',width=' + width + ',height=' + height + ',top=' + top + ',left=' + left;
//----------
form.target = nome;
open('', nome, car);
}