|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > multiple windows |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|