Popup browser window help needed

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Popup browser window help needed

Adrian Crum
Does anyone know how to make a minimized browser window restore to regular size?

I'm trying to get popup reminders working in my calendar project. I have a browser window that
refreshes itself every minute and lists upcoming events, but when the window is minimized, the new
calendar events aren't noticed. I need to be able to restore the browser window when new events appear.

-Adrian

Reply | Threaded
Open this post in threaded view
|

Re: Popup browser window help needed

Michel Dielissen
Maybe with Javascript?

For example:
Put the following script in the head of the page.  The window will reposition and resize to fill the full screen area.

<script language="JavaScript"> window.moveTo(0,0); window.resizeTo(screen.width,screen.height); </script>
or

<script language="JavaScript1.2"> <!-- /*********************************************** * Auto Maximize Window Script- © Dynamic Drive (www.dynamicdrive.com) * This notice must stay intact for use * Visit http://www.dynamicdrive.com/ for this script and 100's more. ***********************************************/ top.window.moveTo(0,0); if (document.all) { top.window.resizeTo(screen.availWidth,screen.availHeight); } else if (document.layers||document.getElementById) { if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){ top.window.outerHeight = screen.availHeight; top.window.outerWidth = screen.availWidth; } } //--> </script>
I found these and others using google "maximize window javascript"

-Michel


Adrian Crum wrote
Does anyone know how to make a minimized browser window restore to regular size?

I'm trying to get popup reminders working in my calendar project. I have a browser window that
refreshes itself every minute and lists upcoming events, but when the window is minimized, the new
calendar events aren't noticed. I need to be able to restore the browser window when new events appear.

-Adrian
Reply | Threaded
Open this post in threaded view
|

Re: Popup browser window help needed

Adrian Crum
Michel,

Thank you very much for your help! The first script worked.

-Adrian

Michel Dielissen wrote:

> Maybe with Javascript?
>
> For example:
> Put the following script in the head of the page.  The window will
> reposition and resize to fill the full screen area.
>
> <script language="JavaScript">
> window.moveTo(0,0);
> window.resizeTo(screen.width,screen.height);
> </script>
>
> or
>
> <script language="JavaScript1.2">
> <!--
>
> /***********************************************
> * Auto Maximize Window Script- © Dynamic Drive (www.dynamicdrive.com)
> * This notice must stay intact for use
> * Visit http://www.dynamicdrive.com/ for this script and 100's more.
> ***********************************************/
>
> top.window.moveTo(0,0);
> if (document.all) {
> top.window.resizeTo(screen.availWidth,screen.availHeight);
> }
> else if (document.layers||document.getElementById) {
> if
> (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
> top.window.outerHeight = screen.availHeight;
> top.window.outerWidth = screen.availWidth;
> }
> }
> //-->
> </script>
>
> I found these and others using google "maximize window javascript"
>
> -Michel
>
>
>
> Adrian Crum wrote:
>
>>Does anyone know how to make a minimized browser window restore to regular
>>size?
>>
>>I'm trying to get popup reminders working in my calendar project. I have a
>>browser window that
>>refreshes itself every minute and lists upcoming events, but when the
>>window is minimized, the new
>>calendar events aren't noticed. I need to be able to restore the browser
>>window when new events appear.
>>
>>-Adrian
>>
>>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Popup browser window help needed

Michel Dielissen
Hi Adrian,

You're welcome. Glad to see it worked out.

Regards,
-Michel


Adrian Crum wrote
Michel,

Thank you very much for your help! The first script worked.

-Adrian

Michel Dielissen wrote:

> Maybe with Javascript?
>
> For example:
> Put the following script in the head of the page.  The window will
> reposition and resize to fill the full screen area.
>
> <script language="JavaScript"> > window.moveTo(0,0); > window.resizeTo(screen.width,screen.height); > </script>>
> or
>
> <script language="JavaScript1.2"> > <!-- > > /*********************************************** > * Auto Maximize Window Script- © Dynamic Drive (www.dynamicdrive.com) > * This notice must stay intact for use > * Visit http://www.dynamicdrive.com/ for this script and 100's more. > ***********************************************/ > > top.window.moveTo(0,0); > if (document.all) { > top.window.resizeTo(screen.availWidth,screen.availHeight); > } > else if (document.layers||document.getElementById) { > if > (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){ > top.window.outerHeight = screen.availHeight; > top.window.outerWidth = screen.availWidth; > } > } > //--> > </script>>
> I found these and others using google "maximize window javascript"
>
> -Michel
>
>
>
> Adrian Crum wrote:
>
>>Does anyone know how to make a minimized browser window restore to regular
>>size?
>>
>>I'm trying to get popup reminders working in my calendar project. I have a
>>browser window that
>>refreshes itself every minute and lists upcoming events, but when the
>>window is minimized, the new
>>calendar events aren't noticed. I need to be able to restore the browser
>>window when new events appear.
>>
>>-Adrian
>>
>>
>>
>
>