Opening window in 1024x768 - strange

eramgarden

Contributor
Joined
Mar 8, 2004
Messages
579
I have this :
Code:
<body onload="window.opener=top;window.open('login.aspx','something','menubar=no,resizable=yes, height=768,width=1024');window.close()" > 
... 
</body>

Resoultion on my box is 1280x800. The width looks fine but the height looks very very long!

I tried the same thing on another box with resolution of 1024x768..again the height looks very very long .I have to resize to see the bottom of page.

Also tried using Page.ClientScript.RegisterStartupScript in the code behind and still the same result..

This is my other code:

Code:
 Dim popupScript As String = "<script language='javascript'>" & _
                                    "window.opener=top;window.open('Login.aspx', 'CustomPopUp', " & _
                                    "'menubar=no,resizable=yes, height=768,width=1024');" & _
                                    "window.close()" & _
                                    "</script>"

        Page.ClientScript.RegisterStartupScript(Me.GetType, "PopupScript", popupScript)

what am i missing??
 
Back
Top