Solved

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

Posted on 2001-08-24
4
373 Views
Last Modified: 2008-03-17
need javascript to open a minimized window on load.
0
Comment
Question by:zerogravity187
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jQuery scrollTop 2 40
Sums of coloumns in html/java 15 65
Javascript create file issue 4 47
Elegant Way to Include Query String When it exists? 4 42
Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
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…

912 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now