[Javascript] Handling child window visibility...
THerman at jerviswebb.com
THerman at jerviswebb.com
Thu Aug 12 09:58:51 CDT 2004
var xParameters = this.value
var xRetValues = window.showModalDialog("/YOUR PATH/YOUR PAGE.???",
xParameters(IF NECCASSARY), "dialogHeight: 550px; dialogWidth: 450px;
dialogTop: px; dialogLeft: px; edge: Raised; center: Yes; help: No;
resizable: No; status:No;", xRetValues);
-----Original Message-----
From: Hakan Magnusson (Backbase) [mailto:hakan at backbase.com]
Sent: Thursday, August 12, 2004 10:53 AM
To: [JavaScript List]
Subject: Re: [Javascript] Handling child window visibility...
In the document inside the popup window, add this:
<body onload="top.focus();">
Should do the trick.
Regards,
H
Shawn Milo wrote:
> I have a form which has a target attribute. This way,
> when someone clicks the submit button on a page which
> contains a Java graph applet, a new window opens with
> a table of statistics based upon the data in the chart.
>
> If the window is already open, it will simply refresh.
> This is fine, but my concern is that if the new window
> is in the background, users will fail to realize this, click
> repeatedly, then call me for help.
>
> I have thought of two options. The first is (if possible)
> to check for the existance of the window during onclick
> and close it. The second is to put JavaScript in the
> onload of the new window to bring it to the top.
>
> Are either of these possible, and are either
> of these recommended? Any other solutions?
>
> I am not creating this window with JavaScript by
> using window.open() or anything --
> just a normal HTML form with target="statWindow"
> in the declaration.
>
> Thanks,
> Shawn
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list