I want to close the browser on btn_cancel just like
this.close();
in window Aplication
Close current browser tab in asp.net without using javascrip
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jun 25, 2013, 11:16 PM EDT
this code will work in ie but some problem in firefox because the
script is not allowed to close browser in Firefox for that you have to change some values in firefox about.config file.
please set your firefox browser:
1.input "about:config " to your firefox address bar and enter;
2.make sure your "dom.allow_scripts_to_close_windows" is true
and check
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jun 25, 2013, 10:13 PM EDT
"Default.aspx" is the current page you need to close.
just modified the code according to your requirement .
If Any problem reply
Khargesh RajputRank #616 · 3.9K reputationPosted Jun 25, 2013, 10:55 PM EDT
and sir is there any option for without using javascript
i have done all according to you