fp_openNewWindow

T

texastonypro

Does anyone know if you can set the actual position of a window opene
with the fp_openNewWindow function? From what I can tell you can se
the size of the window but NOT the position. My window always open
near the top-left portion of the screen.

Thanks,
- Ton
 
T

Trevor L.

texastonypro said:
Does anyone know if you can set the actual position of a window opened
with the fp_openNewWindow function? From what I can tell you can set
the size of the window but NOT the position. My window always opens
near the top-left portion of the screen.

Thanks,
- Tony

I don't use the fp_* functions but this should work

function openwindow(url, name, width , height, x, y)
{
var options =
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
options += ',width=' + width + ',height=' + height
+ ',left=' + x + ',top=' + y
var newWindow = window.open(url, name, options)
newWindow.focus()
}

'name' determines where the window opens; examples are '_blank' '_self' '
'

You can alter the options as you wish (to 'yes' instead of 'no')
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top