How can I control the position where I open a new browser?

P

Peter Everaert

I can open a new browser and set the size of the new browser. However I can
not find where I can control the position. I would like to open a new browser
without any toolbars which covers the whole screen. I sized the browser 1024
by 740 so the bottom task bar stays vissible. However I can not get the left
hand corner to automatically take position 0,0. Is there a way to control
this?
 
T

Trevor L.

Would this work

<SCRIPT type="text/javascript">
window.open(" url ","...name...","toolbar=no, location=no,
directories=no, status=no, menubar=no, scrollbars=no,
resizable=no,width=1024, height=740")
window.moveTo(0,0);
</SCRIPT>

or use JIMCO's Spawn and set the top left to 0,0
http://www.jimcoaddins.com/Default.aspx

--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au/

Peter said:
I can open a new browser and set the size of the new browser. However
I can not find where I can control the position. I would like to open
a new browser without any toolbars which covers the whole screen. I
sized the browser 1024 by 740 so the bottom task bar stays vissible.
However I can not get the left hand corner to automatically take
position 0,0. Is there a way to control this?


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
S

Stefan B Rusynko

That type of scripting is dangerous (width=1024, height=740)
If the users screen resolution is less than 1024 you have created a window part of which is not viewable or scrollable




|
| Actually I found that you can specify position in the window.open as top=0,
| left=0
|
| e.g.
| window.open(" url ","...name...","toolbar=no, location=no,
| directories=no, status=no, menubar=no, scrollbars=no,
| resizable=no,width=1024, height=740,top=0,left=0")
|
| http://www.webreference.com/js/column7/attributes.html
| --
| Cheers,
| Trevor L.
| Website: http://tandcl.homemail.com.au
|
| Trevor L. wrote:
| > Would this work
| >
| > <SCRIPT type="text/javascript">
| > window.open(" url ","...name...","toolbar=no, location=no,
| > directories=no, status=no, menubar=no, scrollbars=no,
| > resizable=no,width=1024, height=740")
| > window.moveTo(0,0);
| > </SCRIPT>
| >
| > or use JIMCO's Spawn and set the top left to 0,0
| > http://www.jimcoaddins.com/Default.aspx
| >
| >
| > Peter Everaert wrote:
| >> I can open a new browser and set the size of the new browser. However
| >> I can not find where I can control the position. I would like to open
| >> a new browser without any toolbars which covers the whole screen. I
| >> sized the browser 1024 by 740 so the bottom task bar stays vissible.
| >> However I can not get the left hand corner to automatically take
| >> position 0,0. Is there a way to control this?
| >
| >
| > I choose Polesoft Lockspam to fight spam, and you?
| > http://www.polesoft.com/refer.html
|
|
 
A

Andrew Murray

try the addin "Spawn" from www.jimcoaddins.com - it does all the work of
creating the code for a popup window including x and y coordinates for
positioning the window (or centring it on the screen).
 
Top