Solved

on page load, opens a pop-up that is minimized  - any ideas?

Posted on 2001-08-24
4
388 Views
Last Modified: 2008-03-17
need javascript to open a minimized window on load.
0
Comment
Question by:zerogravity187
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
bebonham earned 20 total points
ID: 6423767
there is no "minimize" command.
but you can make the window small and then move it off the viewable area of the screen, or you can loose it's focus immediately like this:

window.open('yourpage.html')
winow.focus()
0
 

Author Comment

by:zerogravity187
ID: 6423866
well then how do they load those annoying minimized pages that keep popping up the other ones when you are trying to close them?   I dont want to annoy ne1 - but a proggie that i am working on needs a window to open in the background that refreshes and checks for updates....

there is no window.open.min or something?
0
 
LVL 8

Expert Comment

by:bebonham
ID: 6424985
nope, they work by the techniques I listed above (usually by moving the window out of the viewable area).

you can still do all the stuff you want to do.

you can set it's onunload event to load itself forinstance, and then it would be tough to close.

Bob
0
 

Expert Comment

by:Leed
ID: 6436854
Try playing with this:


<script language="JavaScript">

<!--

function ShowPopupRAP()
{
     var popupURL = "file.htm";
       var popup = window.open(popupURL,"login",'toolbar=0,locationbar=0,status=1,menubar=0,scrollbars=0,resizable=0,width=550,height=380');
     // set the opener if it's not already set.  it's set automatically
     // in netscape 3.0+ and ie 3.0+.
     if( navigator.appName.substring(0,8) == "Netscape" )
     {
          popup.location = popupURL;
     }
}

// -->

</script>
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question