...

View Full Version : How to open new window on (0,0)?



kippie
12-13-2005, 06:35 AM
I would like to open a new window above the old window on the position (top=0, left = 0). I use the following link to do this:

<div id="contact" style="position:relative; left: -140px; top: -1200px; width:140px; height: 0px; z-index:7;">
<a href="#" onclick="window.open('adres.html','','resizable=yes,width=220,height=260')">Contact</a>
</div>

But the new window opens one time at this place another time at another place. What can I do about it?

Kor
12-13-2005, 09:08 AM
"window.open('adres.html','','resizable=yes,width=220,height=260,left=0,top=0')"

Bill Posters
12-13-2005, 09:12 AM
"window.open('adres.html','','resizable=yes width=220 height=260 left=0 top=0')"

And ... There must be no commas between attributes

Nonono. There must be commas. There must be no spaces.

Kor
12-13-2005, 09:16 AM
You're right. May I be excused, I have just arrived from my dentist :rolleyes:

Bill Posters
12-13-2005, 09:23 AM
You're no good to us in that state. Go home and don't come back until the laughing gas has worn off.

;)

liorean
12-13-2005, 09:24 AM
kippie: Anyways, don't load the window at [0,0]. Some of us aren't using Windows and may have OS UI at the top of the screen. Some of us that are using Windows don't have the task bar at the default location of bottom of the screen.

Instead load the window at the location indicated by the values of screen.availLeft and screen.availTop.

Kor
12-13-2005, 09:26 AM
What a bull**** excuse

mah... It looks like you have never tasted their anaesthetics... :D

liorean
12-13-2005, 11:21 AM
Yeah, I've done without anaesthetics all my visits to the dentist so far :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum