Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript minimize function

Status
Not open for further replies.

caesarkim

Programmer
Oct 30, 2003
56
US
is there any javascript function that minimize the child window?

 
I meant, bringing the child window into the window bottom tab.
 
I have never seen such a command... but since you are looking for a Windows only solution, you may find there is an IE specific solution that you can do using either VBScript or via an ActiveX control.

As I said, I don't think you can do this using just javascript.

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
I meant child IE browser. sorry for confusing you guys.

is there a javascript or any component that I can use to bring the IE browser into the desktop bottom tab?

 
try this ie hack - it just moves the window off screen, then brings it back to the top left when focused.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/URL]

<html>
<head>
<title>Untitled</title>

<script type="text/javascript"><!--

function doMinimize() {
    window.moveTo( -100000, -100000 );
}

function doShow() {
    window.moveTo( 0, 0 );
}

onfocus = doShow;

//--></script>

</head>

<body>

<a href="#" onclick="doMinimize(); return false;">Minimize Me!</a>

</body>
</html>


IE ONLY i would assume...

*cLFlaVA
----------------------------
[tt]I already made like infinity of those at scout camp...[/tt]
beware of active imagination: [URL unfurl="true"]http://www.coryarthus.com/[/url]

BillyRayPreachersSonIsTheLeetestHax0rDude
[banghead]
 
this will prevent it from moving when the page is first loaded:

Code:
<script type="text/javascript"><!--

var isVisible = true;

function doMinimize() {
    window.moveTo( -100000, -100000 );
    window.blur();
    isVisible = false;
}

function doShow() {
    if ( !isVisible ) {
        window.moveTo( 0, 0 );
        isVisible = true;
    }
}

onfocus = doShow;

//--></script>

*cLFlaVA
----------------------------
[tt]I already made like infinity of those at scout camp...[/tt]
beware of active imagination: [URL unfurl="true"]http://www.coryarthus.com/[/url]

BillyRayPreachersSonIsTheLeetestHax0rDude
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top