Results 1 to 3 of 3

Thread: Centre window after button click

  1. #1
    Join Date
    Sep 2004
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Centre window after button click

    I want to use images to open a window in the centre of the screen with various dimensions. Anybody know the code???
    Thank you

  2. #2
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    HI

    Take a look at http://www.javascriptkit.com/jsref/window.shtml

    The code is: screenX, screen

    rgds,Simonf

  3. #3
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    HI

    Or try:

    In head:
    <script type="text/javascript">
    function openpopup(popurl) {
    winpops = window.open(popurl,"","width=650, height=500, center, middle, scrollbars=yes, menubar=no, resizable=yes")
    }
    </script>

    In url section:
    href="javascriptpenpopup('pdfs/d2.pdf')"

    rgds,Simonf

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
  •