By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

window.open - restore on the screen a minimized window

P: n/a
Hi All,

I use a simple function on a web site, based on this function:

function goVisitSite(Site)
{
NewWindow1 = window.open(Site,
"viewwin",
"toolbar=0,menubar=0,width=900,height=280,top=0,le ft=0,scrollbars=1,resizable=yes");
}

On the main page I have a link which opens a new window with some details.
If I minimize that window, next time I click on a link to open it again, the
content of the page changes, but the window remains minimized in the
taskbar. Is there a way of restoring the window to the screen once I call
the above function?

Regards,
Nicolae
Jul 23 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"Nicolae Fieraru" <no****@please.com> wrote in message
news:42******@duster.adelaide.on.net...
Hi All,

I use a simple function on a web site, based on this function:

function goVisitSite(Site)
{
NewWindow1 = window.open(Site,
"viewwin",

"toolbar=0,menubar=0,width=900,height=280,top=0,le ft=0,scrollbars=1,resizable=yes");
}

On the main page I have a link which opens a new window with some
details. If I minimize that window, next time I click on a link to
open it again, the content of the page changes, but the window remains
minimized in the taskbar. Is there a way of restoring the window to
the screen once I call the above function?

Regards,
Nicolae


NewWindow1 = window.open(...);
if (NewWindow1)
{
NewWindow1.focus();
}

Although on some versions of Internet Explorer, this will not "Restore"
the window, but rather will flash the taskbar icon.

Other platforms, operating systems and Web browsers, it may do anything
from your desired behaviour to nothing at all.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2

P: n/a
Maybe - not sure - in the popup put the following in the body tag:
onLoad="this.focus()"

Jul 23 '05 #3

P: n/a
Thank you very much, frizzle, this did the trick for IE6 and for Netscape
7.02

Best regards,
Nicolae
"frizzle" <ph********@hotmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Maybe - not sure - in the popup put the following in the body tag:
onLoad="this.focus()"

Jul 23 '05 #4

P: n/a

"Grant Wagner" <gw*****@agricoreunited.com> wrote in message
news:G_***************@news2.mts.net...
"Nicolae Fieraru" <no****@please.com> wrote in message
news:42******@duster.adelaide.on.net...
Hi All,

I use a simple function on a web site, based on this function:

function goVisitSite(Site)
{
NewWindow1 = window.open(Site,
"viewwin",

"toolbar=0,menubar=0,width=900,height=280,top=0,le ft=0,scrollbars=1,resizable=yes");
}

Hi Grant,

Thank you very much for your advice. I didn't test it, because I would have
had to implement the method on more pages, while the solution Frizzle
offered is more convenient for me.

Best regards,
Nicolae
Jul 23 '05 #5

P: n/a
Glad to help ;)

Jul 23 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.