Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

using asp.net, code behind has Response.Write("<script> window.opener=self ; window.close(); </script>"); that works both internal browser and IE, but ignored in Firefox. Why ?

  • 1 답장
  • 8 이 문제를 만남
  • 2 보기
  • 최종 답변자: cor-el

more options

I am using 'Microsoft Visual Studio 2008' Professional Edition, and I use 'Firefox version 5.0'. ( Firefox browser informs me I am using the lsatest version, when I choose 'Help' - 'About Firefox')

My Button ('btClose') is the ONLY object present on my Web Page. Code behind file reads :

======= ======
   protected void btClose_Click(object sender, EventArgs e)
   {
       Response.Write("<script> window.opener=self ; window.close(); </script>");
   }
======= ======

EVERYTHING works as planned - using either (*) Visual Studio's internal browser

               - OR - 

(*) Internet Explorer

Click 'Close' button - it posts a confirm box, & success !!

BUT - browsing via Firefox - nothing bad happens - NOTHING !

Its as if Firefox doesn't run scripts .

Please let me know what to do.

Sincerely

Ray Grant ( RGrant41@aol.com)

I am using 'Microsoft Visual Studio 2008' Professional Edition, and I use 'Firefox version 5.0'. ( Firefox browser informs me I am using the lsatest version, when I choose 'Help' - 'About Firefox') My Button ('btClose') is the ONLY object present on my Web Page. Code behind file reads : ============= ============ protected void btClose_Click(object sender, EventArgs e) { Response.Write("<script> window.opener=self ; window.close(); </script>"); } ============= ============ EVERYTHING works as planned - using either (*) Visual Studio's internal browser - OR - (*) Internet Explorer Click 'Close' button - it posts a confirm box, & success !! BUT - browsing via Firefox - nothing bad happens - NOTHING ! Its as if Firefox doesn't run scripts . Please let me know what to do. Sincerely Ray Grant ( RGrant41@aol.com)

모든 댓글 (1)

more options

You can only close windows via window.close() that were previously opened via JavaScript