Web Analytics Made Easy -
StatCounter Specific pop-up window size - CodingForum

Announcement

Collapse
No announcement yet.

Specific pop-up window size

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    You can open a new window as follows (one method):

    Code:
    <a href="javascript&#58;;" onClick="window.open('yourPage.html','myWin','scrollbars=yes,[b]width=500,height=500'[/b]);">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 .

    Last edited by boxer_1; Jul 12, 2002, 11:33 AM.
    boxer_1
    CodingForum Moderator
    "How did a fool and his money get together in the first place?"

    Comment


    • #3
      whoo hoo! i love you guys.

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

      Comment


      • #4
        <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.

        Comment


        • #5
          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):

          Use this JavaScript wizard to instantly create, customize, and add pop up windows to your site!


          Edit: LOL joh6nn...the twilight thread .
          Last edited by boxer_1; Jul 12, 2002, 11:30 AM.
          boxer_1
          CodingForum Moderator
          "How did a fool and his money get together in the first place?"

          Comment


          • #6
            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.

            Comment

            Working...
            X