joestripp said:
I am not permitted to install add-ons. Can't I just modify the code?
This is the JS function (with apologies to Jim as it is modified slightly to
allow x and y centering spearately)
function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
{
if (scaleType == 'percent')
{ h = (h * screen.availHeight) / 100
w = (w * screen.availWidth) / 100 }
if (x == 'center') x = (screen.availWidth - w) / 2
if (y == 'center') y = (screen.availHeight - h) / 2
options += ',width=' + w + ',height=' + h
+ ',left=' + x + ',top=' + y
var newWindow = window.open(url, name, options)
newWindow.focus()
}
Just call it by spawnJimcoPopup('your.domain.com', '_blank', , '50',
'50','center','center', 'percent')
and you will open 'your.domain.com' in a new window which occupies 50% of
the height and width and is centred.