R
Ralf
Using .NET 1.1, vb code behind.
I have a project and I have been opening new windows throughout it. I
need them opened on top of the parent, and be able to minimize or go
back to the parent if needed before closing the new window. I am
opening the window this way.
Response.Write("<script>window.open('ReviewComments.aspx')</script>")
On the code behind of the new window in the Page_Load function, I keep
the window on top by using this.
RegisterStartupScript("OpenOnTop", "<script
language=javascript>document.focus();</script>")
This has worked great for about 5 other windows. I have went back and
added another window, but it doesn't work everytime. I can sit here
and test it over and over, and sometimes it stays on top but most of
the time it goes to the back. I have checked the properties of the
page against the ones that work and they are identical. Any ideas what
is happening?
I am open to other ways of getting the window to stay on top, so
suggestions are appreciated.
Thx
I have a project and I have been opening new windows throughout it. I
need them opened on top of the parent, and be able to minimize or go
back to the parent if needed before closing the new window. I am
opening the window this way.
Response.Write("<script>window.open('ReviewComments.aspx')</script>")
On the code behind of the new window in the Page_Load function, I keep
the window on top by using this.
RegisterStartupScript("OpenOnTop", "<script
language=javascript>document.focus();</script>")
This has worked great for about 5 other windows. I have went back and
added another window, but it doesn't work everytime. I can sit here
and test it over and over, and sometimes it stays on top but most of
the time it goes to the back. I have checked the properties of the
page against the ones that work and they are identical. Any ideas what
is happening?
I am open to other ways of getting the window to stay on top, so
suggestions are appreciated.
Thx