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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Un-minimizing a window

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
How can I un-minimize a window? Using the focus method does nothing.

See I want to be able to have it change it's source, following the click of a link, and then pop up with the new information, but I can't make it pop-up, and I can't make it pop-up.

I also tried just making it close onBlur, but it closed as soon as it loaded! like that makes sense.

Cheers, Ben.
 
The page is losing focus when it loads, probably because some other element on the page is gaining focus...

<script>
function getFocus()
{
self.focus()
}
window.onblur=getFocus
</script>

this code prevented it from being minimized in IE5.5 and NS4.72...unfortunately, if you use this code, a form element (like a text field) could never get focus. jared@aauser.com
 
It seems I can only get the page to open up from minimized, if I change some aspect of it,like I use resizeTo, and then the focus method works,otherwise the page loads but it does not pop back up. So I am just goint to include an academic resize for now until i sort it out.

This behaviour I don't quite understand, I would think when you call focus, that it should apply it.

Thanks anyway, ben.

wait, maybe I need to blur the link? Do you think the link I click would take precedence over the target window?
It must, so if I blur that it might work, I'll give it a go.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top