Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have this :

<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:

 


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??

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...