Show Subwindow

Giganews Newsgroups
Subject: Show Subwindow
Posted by:  Venkat (venkat_…@yahoo.com)
Date: Thu, 17 Jul 2003

Hi All,

I have got two windows namely parent and a child .

My parent window has got a link, on clicking which opens a child window(i am
using window.open function).

I do the following set of operations

In my parent window i click the link which results in popping up the child
window,
now i will minimize this child window and will click the link in parent
window again,
this time the child window will not popup(maximizes), it sits on the tray in
minimized
position.

Can anyone suggest me how to make child window show in maximized form when i
click
the link in parent window for the second time.

Here is the piece of code i am using for the same.

<a style='text-decoration:none'
href="javascript:showSubWindow1('ChildWindow.asp');">
Child Window </a>

<Script language = "JavaScript">

function showSubWindow1(url)
{
subwindow1 = true;
var subwindow = window.open(url,"def1",
"HEIGHT=650,WIDTH=770,SCROLLBARS=YES,RESIZABLE=YES,status=yes");
}

</Script>

Thanks
Venkat

Replies