[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

Close button for a popup

I have this example
http://demos.telerik.com/aspnet-classic/Window/Examples/DialogReturnValue/DefaultCS.aspx

Click on "show dialog" and you'll see a close button. If you click that, the popup closes. I dont see the code for it. I see "OnClientClose". So in my popup-aspx code i should add a close button and that javascript will take care of it?? I googled for other examples and not much luck
0
Camillia
Asked:
Camillia
1 Solution
 
haloexpertsexchangeCommented:
I think that the close button is automatically there and needs no special handling.
0
 
Dave BaldwinFixer of ProblemsCommented:
See here: http://www.w3schools.com/jsref/met_win_close.asp

This is what I use in a popup window:

<input type=button value="Close This Window" onClick="javascript:window.close();">
0
 
CamilliaAuthor Commented:
it's not there automatically. Let me look at Dave's example.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now