Solved

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

Posted on 2001-08-24
4
390 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

717 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