#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    4
    Rep Power
    0
    i have a main window that opens another window(index) and the index opens a second window. i need a button in the index that changes the background color of the first window to red and also closes all the windows.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    6
    Rep Power
    0
    windows[0] = window.open( "blabla" );
    windows[1] = window.open( "blabla" );

    in the button you do:
    onclick="javascript:this.windows[0].document.bgcolor (or another property, you'll have to look that up) = "red";

    to close:
    for( i = 0; i < windows.length; i++ ) windows[i].close

Similar Threads

  1. opening multiple browser windows
    By 7stud in forum Dev Shed Lounge
    Replies: 12
    Last Post: April 1st, 2009, 12:50 PM
  2. Multiple boot: Windows XP Pro, RH 9.0, Win98se
    By darthsidious_ in forum Linux Help
    Replies: 5
    Last Post: August 22nd, 2004, 02:54 PM
  3. Windows 2003 server cannot join Windows 2000 domain
    By wingschai in forum Windows Help
    Replies: 11
    Last Post: April 1st, 2004, 09:26 AM
  4. multiple form submits and pop up windows
    By bakedbean in forum HTML Programming
    Replies: 1
    Last Post: March 9th, 2003, 02:16 PM
  5. closing and opening multiple windows.
    By shin in forum HTML Programming
    Replies: 0
    Last Post: February 27th, 2003, 09:30 AM

IMN logo majestic logo threadwatch logo seochat tools logo