473,561 Members | 3,644 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

window.open - restore on the screen a minimized window

Hi All,

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

function goVisitSite(Sit e)
{
NewWindow1 = window.open(Sit e,
"viewwin",
"toolbar=0,menu bar=0,width=900 ,height=280,top =0,left=0,scrol lbars=1,resizab le=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
5 16841
"Nicolae Fieraru" <no****@please. com> wrote in message
news:42******@d uster.adelaide. on.net...
Hi All,

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

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

"toolbar=0,menu bar=0,width=900 ,height=280,top =0,left=0,scrol lbars=1,resizab le=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.focu s();
}

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*****@agrico reunited.com>
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
Maybe - not sure - in the popup put the following in the body tag:
onLoad="this.fo cus()"

Jul 23 '05 #3
Thank you very much, frizzle, this did the trick for IE6 and for Netscape
7.02

Best regards,
Nicolae
"frizzle" <ph********@hot mail.com> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.com...
Maybe - not sure - in the popup put the following in the body tag:
onLoad="this.fo cus()"

Jul 23 '05 #4

"Grant Wagner" <gw*****@agrico reunited.com> wrote in message
news:G_******** *******@news2.m ts.net...
"Nicolae Fieraru" <no****@please. com> wrote in message
news:42******@d uster.adelaide. on.net...
Hi All,

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

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

"toolbar=0,menu bar=0,width=900 ,height=280,top =0,left=0,scrol lbars=1,resizab le=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
Glad to help ;)

Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
15342
by: Archi | last post by:
Hi. All. I need open a browser (IE5.5 or letter) to full screen like F11 pressed. I use a little trick. Open new window, and close old: var win = window.open('index.aspx','',"channelmode=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,titlebar=no,resizable=no"); opener=self; window.close(); This code open window WITH titlebar!!!! If i...
6
8217
by: Les | last post by:
Hi, I'd like to find out how to use the window.open() script in Fireworks MX. I have posted my question in the Fireworks forum but didn't get any replies. Since it's javascript, maybe someone could help me here...? I'd like to use the window.open() script to open a separate window, because I'd like to hide the menubar and specify the...
1
27579
by: Ben Smeets | last post by:
Hi folks, Have been trying to figure out a solution for the following problem by reading lots of threads here, but doesn't work out. Hope someone can help me. I have a parent window which opens a popup window (child). What i would like to do, is to be abke to keep surfing to other pages in the parent and after (lets say) a couple of new...
3
5849
by: Bernd Liebermann | last post by:
Hi, I'm trying to change the content of an existing window from a second window using window.open(). This works fine in Netscape 7, but IE 6.0 returns an error, saying there's an invalid parameter. If I omit the target window's name, everything works fine except that my document is opened in a new window. window.open("somescript.php",...
40
10781
by: Brian Jorgenson | last post by:
On my web page, I have a few hyperlinks with target frame of _blank. The hyperlink brings up a second window, but everytime I click on thie hperlink, it keeps bringing up a new window and not defaulting the the first active window. How do I make a hyperlink point to the active window? I don not want the hyperlink to default to the same page. I...
8
2419
by: alanstew | last post by:
With the body tag calling out 'window onload', a function with a 'window.open' fails at the 'window.open' line. If I cut out the body tag, the function executes as normal. At first I thought it was the entire function failing, but I tested with alerts and found that it was only the 'window.open' that fails to execute. The function is being...
3
2530
by: Steve Covert | last post by:
I apologize if this resolution is commonplace, but I have not found a solution as of yet. When I open a popup window from asp.net using Javascript as follows: Page.RegisterStartupScript("Title", "window.open(args)"); the new window opens, flickers for a second, and then minimizes. There must be a fix for this. Any ideas appreciated!
4
2124
by: Alexey | last post by:
I have a situation where I need to respond to a link click by opening 2 windows and navigating to a URL in the parent window. Here's the function I invoke: function handleOfferLink(selfURL, instructionURL, offerURL) { window.open(selfURL, '_self').focus(); window.open(offerURL, '_blank').focus(); window.open(instructionURL, '_blank',...
5
10668
by: ray well | last post by:
i need to restore a minimized window whose handle i know, from within a running app. how would i do that? thanks for any help ray
0
7639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8074
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7608
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7926
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5181
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3613
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3594
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
885
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.