SitePoint Sponsor |
|
User Tag List
Results 1 to 8 of 8
Thread: minimizing windows
-
Feb 1, 2001, 17:42 #1
- 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>
-
Feb 1, 2001, 17:46 #2
- 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.
-
Feb 1, 2001, 18:09 #3
- 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.
-
Feb 1, 2001, 18:35 #4
- 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.
-
Feb 1, 2001, 19:16 #5
-
Feb 1, 2001, 20:02 #6
- 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.
-
Feb 1, 2001, 22:59 #7
- 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.
-
Feb 2, 2001, 15:10 #8
- 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
aDogModerator at www.javascriptcity.com/forums/
Bookmarks