Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Window.close () is not working in mozilla firefox( working fine in IE)

Window.close () is not working in mozilla firefox( working fine in IE)

Scheduled Pinned Locked Moved ASP.NET
javascript
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mcmilan
    wrote on last edited by
    #1

    Hi, I am using javascript to close the window when I click the Button. I am using window.close() in Response.write() .....It is working nice in IE ..... But it is not working in Mozilla...... Thanking you Mcmilan.

    I 1 Reply Last reply
    0
    • M mcmilan

      Hi, I am using javascript to close the window when I click the Button. I am using window.close() in Response.write() .....It is working nice in IE ..... But it is not working in Mozilla...... Thanking you Mcmilan.

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      mcmilan wrote:

      I am using javascript to close the window when I click the Button. I am using window.close() in Response.write() .....It is working nice in IE ..... But it is not working in Mozilla......

      Instead of response.write,use this line code

      this.Page.ClientScript.RegisterStartupScript(this.GetType(), "key", "window.close();", true);

      please don't forget to vote on the post that helped you.

      M 1 Reply Last reply
      0
      • I Imran Khan Pathan

        mcmilan wrote:

        I am using javascript to close the window when I click the Button. I am using window.close() in Response.write() .....It is working nice in IE ..... But it is not working in Mozilla......

        Instead of response.write,use this line code

        this.Page.ClientScript.RegisterStartupScript(this.GetType(), "key", "window.close();", true);

        please don't forget to vote on the post that helped you.

        M Offline
        M Offline
        mcmilan
        wrote on last edited by
        #3

        Hi Imran, Thanks for your help.........But it is not working in mozilla..... Thanking you Mcmilan.

        B 1 Reply Last reply
        0
        • M mcmilan

          Hi Imran, Thanks for your help.........But it is not working in mozilla..... Thanking you Mcmilan.

          B Offline
          B Offline
          bmchugh66
          wrote on last edited by
          #4

          You can't do this in FF. See link. http://www.codeproject.com/script/Forums/View.aspx?fid=12076&select=2640069&fr=1#xx2640069xx[^]

          Brian McHugh

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups