SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Nov 2000
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how would I automatically minimize a window when i initialize a new window in java script.

    thanks in advance.

    <SCRIPT>
    function makeWin() {
    newWin = window.open("http://webcast.themeetingson.com/confluence.jsp?content=joinEvent.jsp&resvNum=17605812","","HEIGHT=1,WIDTH=1,hidden");

    }
    </SCRIPT>

  2. #2
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Someone correct me, but I don't think you can (JavaScript doesn't allow for minimising/maximising).

    Lemme read up on my JavaScript routines and get back to you.
    My 2 Cents (or is that 2.2 Cents including GST?)

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2000
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well I know you can minimize, or even to focus on the main window.

    I have the main window and the main window calls a small window.

    I want the small window to minimize or have the main window go ontop of it.

  4. #4
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, sorry, I thought you meant completely minimise the window. Silly me

    Check PGA's response in this thread to have a window focus.
    My 2 Cents (or is that 2.2 Cents including GST?)

  5. #5
    Don't get too close, I bite! Nicky's Avatar
    Join Date
    Jul 1999
    Location
    Lancashire, UK
    Posts
    8,277
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I understood the same thing as BC!

  6. #6
    SitePoint Zealot
    Join Date
    Nov 2000
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well technically I wouldn't mind if either of them happen,

    That is something of the sort, but I wanted the javascript window to be unfocused. Behind the main window.

  7. #7
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I guess you can call the focus() method to apply to the main window once you call the popup. I'm moving this to the Client-Side Scripting forum where the JScript experts can help you out.
    My 2 Cents (or is that 2.2 Cents including GST?)

  8. #8
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lfabbric,

    I guess all you want it to have the window be hidden until is is selected by the user again, correct?

    Well, what BC stated would work, and you could also blur() the new window. Like this:

    <SCRIPT>
    function makeWin() {
    newWin = window.open("http://webcast.themeetingson.com/confluence.jsp?content=joinEvent.jsp&resvNum=17605812","","HEIGHT=1,WIDTH=1,hidden");
    newWin.blur();
    window.focus();
    }
    </SCRIPT>

    You really on need either or the newWin.blur() or window.focus(), but I just included them both

    aDog


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
  •