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
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    The Omega-3 system
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy can someone CENTER my pop-ups

    Forgive me for posting two threads on the same subject but my problem got buried under several posts and I need help.


    The bottom line problem is this:

    - my pop-ups using the code below are popping up on the screen with half of the pop-up off screen to the right. I have to drag the pop-up window over to the left to see the whole thing.

    Here is the script:

    <script>

    //Popup Window Script
    //By JavaScript Kit (http://javascriptkit.com)
    //JavaScript tutorials and over 400+ free scripts

    function openpopup(popurl,settings){
    winpops=window.open(popurl,"",settings)
    }

    </script>
    <form>
    <input type="button" value="Click here to see" onclick="openpopup('venice_beach_sunsetpoll. htm','width=400,height=338,scrollbars,resizable,')
    " >
    <input type="button" value="Click here to see" onclick="openpopup('a_different_page.htm','width=200,height=200')" >
    </form>


    Can anyone show me this same code with the necessary additions to correct this problem?

    Thank you!!

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There's no need to post again - and actually it's against the forum rules.

    Try the code I posted again... I'm going to edit the post to try and remove the line breaks...
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Yes, please don't start new topics when not necessary.

    For anyone who doesn't know,
    can't figure out this pop-up

    Anyway, I'm going to close this thread. Don't worry about, just refrain from it in the future.


  •  

    Posting Permissions

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