John Account
asked on
Command button to unload page
I want a command button on my asp.net vb page to call a javascript function before closing the page. I have a command button now that I was experiementing with, and in code behind this code: InjectScript.Text = "<script>OpenWindowDiag()< /" + "script>" But I don't know how to make it close the window. Any help? Thanks.
ASKER
Well, maybe I should use my command button somethign like this? -- <asp:Button ID="Button1" runat="server" Text="Open window" OnClientClick="OpenWindow( 'RadWindow 1');return false;" />
But do you know a javascript to close the window?
But do you know a javascript to close the window?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
Are you trying to do this with a client-side click handler or by injecting the script from your code-behind?