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 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    Earth
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Specific pop-up window size

    wow, this place sure has changed. There isn't even a link from dynamicdrive anymore it seems.

    on to the main even.

    i want to make a link, that when it says 'target="new"' it will open that 'new' window, but i want to determine the size of the window. and that's all. i'm not sure if it can be done without java, or with php. i'd really appreciate all help.

    This place is always helpful, the only thing I don't like is when you ask a stupid question, you get mocked for it, but hey, let me have it.
    Life is funny, especially when you're poor.

  • #2
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can open a new window as follows (one method):

    Code:
    <a href="javascript&#58;;" onClick="window.open('yourPage.html','myWin','scrollbars=yes,width=500,height=500');">Open Window</a>
    The bolded defines the size of the window. Change 'yourPage.html to the path to the html file you wish to open in the new window. For more information on pop-ups, here's a link youmight want to take a look at .

    http://www.irt.org/articles/js205/index.htm
    Last edited by boxer_1; 07-12-2002 at 04:33 PM.
    boxer_1
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Location
    Earth
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    whoo hoo! i love you guys.

    Like, thanks man.
    Life is funny, especially when you're poor.

  • #4
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    <A HREF="somePage.htm" TARGET="new" onClick="window.open('somePage.htm','new','width=##,height=##'); return false;">click click</A>

    <edit>hmm. when i opened this thread there weren't any responses. i think i just experienced time loss there</edit>
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #5
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There are many variations, such having the window open onLoad. Here's a link to a pop-up generator we have at JavaScript Kit (though there are many such generators out there):

    http://javascriptkit.com/popwin/index.shtml

    Edit: LOL joh6nn...the twilight thread .
    Last edited by boxer_1; 07-12-2002 at 04:30 PM.
    boxer_1
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"

  • #6
    Regular Coder
    Join Date
    Jul 2002
    Location
    Earth
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no, no, that is good. i didn't realize the other one was java script. i wanted to avoid java script.

    Thank you!
    Life is funny, especially when you're poor.


  •  

    Posting Permissions

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