Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: pop up window

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    156
    Thanks
    0
    Thanked 0 Times in 0 Posts

    pop up window

    is there any restriction that we can not reduce the height of pop up window less than 100 if i want to keep 20px it is not reducing.



    <html>
    <head>
    <title>Untitled</title>
    <script language="javascript">
    function popchk()
    {
    var abc=window.open("smallpopupwindow.htm","xyz","width=5,height=5,scroll=0,scrollbars=auto,toolbar=0,st atus=0")
    }
    </script>
    </head>

    <body leftmargin="0" topmargin="0">
    <table cellpadding="0" cellspacing="0" border="0">
    <tr><td valign="top" height="99"><a href="javascriptopchk()">Click Here</a></td></tr>
    </table>
    </body>
    </html>

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What could you possibly need a popup window 5px X's 5px for?

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ebco
    is there any restriction that we can not reduce the height of pop up window less than 100 if i want to keep 20px it is not reducing.
    yes, and for the same reasons as you cannot move them off screen. it's for security reasons. that way a site could easily run some nasty ActiveX or bug exploit scripts and append any data to a popup window.

    are you up to no good, then? it's an odd request.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •