SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    May 2008
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem with setting popup window size

    Hi there, i have some html embeded inside php code that opens a new window


    php code.......
    <html><body><SCRIPT type="text/javascript">

    window.open('http://localhost/STAFF/popup-staffnotadded.html','newwindow', config='height=20,width=20, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no');

    </SCRIPT></body></html>
    php code.......

    the problem is that i want to adjust the size of the poup window, even though i have done the above my window still opens the way it did before i put in the setting parameters.

    can somebody please help me.

    all help is very much appreciated

  2. #2
    SitePoint Guru
    Join Date
    Nov 2005
    Location
    Norway
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi
    Check out this article: http://www.quirksmode.org/js/popup.html.

    Hope it helps.

  3. #3
    SitePoint Zealot
    Join Date
    May 2008
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi, i tried out the example from the link you posted, that would only work if i had a button on my web page and when clicked on the popup would open. my html & java code is executed due to a successful/unsuccessful query.

    any other suggestions on how i can resolve this problem. thanks


Bookmarks

Posting Permissions

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