Click to See Complete Forum and Search --> : Browser Window
Michael Penland
June 7th, 2002, 03:44 AM
All,
I don't usualy write scripting code but I am working on a project that requiers me to minimize the browser window programaticaly.
Does anyone know how to minimize the browser with VBScript
or JavaScript??
This forum is great, thanks to all??
MPenland
Zvona
June 7th, 2002, 05:42 AM
Originally posted by Michael Penland
All,
I don't usualy write scripting code but I am working on a project that requiers me to minimize the browser window programaticaly.
Does anyone know how to minimize the browser with VBScript
or JavaScript??
Hmm..which kind of situation requires to minimize the window? Could you be a little more specific, and I think we'll find a suitable solution for your problem.
Do you have to hide window for while, or set focus off (blur) from window instance?
Michael Penland
June 7th, 2002, 07:55 PM
The situation is that I am writting chromeless window interfaces to my VC++ moduals and want the user to be able to minimize.
I Create my own titlebar type minimize buttons. That is what I want the minimize functionality for.
Thanks
MGP
Zvona
June 8th, 2002, 04:45 AM
:o Oh, I understand. Well, there's no standard methods for minimizing window. I tried to search from MSDN Library (http://msdn.microsoft.com/library) about window-object manipulation, but no references regarding to minimization were found.
One thing I figured out, is blurring the window instance. This however, requires that other window instance exists (where to focus on).
Another thing would be like :
<script type="text/javascript">
function zMinimize()
{
window.resizeTo(0,0);
window.moveTo(0,screen.height-50);
}
</script>
Above function will resize your window instance to zero (only chrome will be seen) and re-position it to lower-left corner. I've seen some applications doing this as minimization.
Hope at least one of my advices help you to find a solution.
Michael Penland
June 8th, 2002, 08:46 AM
I have looked at this approach and wanted to see if
I could minimize to the task bar.
Michael Penland
June 8th, 2002, 08:49 AM
Am I correct in assuming that the functionality of the title bar is governed by the operating system not the browser.
MGP
Sujatha G
June 24th, 2002, 01:49 AM
This link has some code related to chromeless window
http://www.dynamicdrive.com/dynamicindex8/chromeless.htm
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.