Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Learn More

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

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 antwurd
  • 8 hawwe dit probleem
  • 2 werjeftes
  • Lêste antwurd fan 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)

Alle antwurden (1)

more options

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