Solved

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

Posted on 2001-08-24
4
371 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

772 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

11 Experts available now in Live!

Get 1:1 Help Now