R
Ryan Ternier
I have a pop-up window that I'm closing when a user presses a submit button.
The page we're creating is not supposed to use any .NET controls.
All the HTML is output through a single string to the page, using
<% = body() &>
When it comes time to close, i'm using this simple snippet:
Response.Write("<script>window.close();</script>")
Response.Flush()
Which flushes the script, and runs it right away, which is what we want, but
it seems... messy. Is there another trick to accomplish this? Can you make
a direct call to othe unload event?
The page we're creating is not supposed to use any .NET controls.
All the HTML is output through a single string to the page, using
<% = body() &>
When it comes time to close, i'm using this simple snippet:
Response.Write("<script>window.close();</script>")
Response.Flush()
Which flushes the script, and runs it right away, which is what we want, but
it seems... messy. Is there another trick to accomplish this? Can you make
a direct call to othe unload event?