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 with Mozilla Firefox

Window.close() is not working with Mozilla Firefox

Scheduled Pinned Locked Moved ASP.NET
help
5 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 window.close() to close the browser when I click the Button on my webpage.....It is working with InternentExplorer but not working with MozillaFireFox......Please help me........ Thanking you McMilan.

    I 1 Reply Last reply
    0
    • M mcmilan

      Hi , I am using window.close() to close the browser when I click the Button on my webpage.....It is working with InternentExplorer but not working with MozillaFireFox......Please help me........ Thanking you McMilan.

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

      mcmilan wrote:

      I am using window.close() to close the browser when I click the Button on my webpage.....It is working with InternentExplorer but not working with MozillaFireFox......Please help me........

      Post your code

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

      B M 2 Replies Last reply
      0
      • I Imran Khan Pathan

        mcmilan wrote:

        I am using window.close() to close the browser when I click the Button on my webpage.....It is working with InternentExplorer but not working with MozillaFireFox......Please help me........

        Post your code

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

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

        "In FF, window.close() will never close, not unless you opened that window through window.open method" http://www.dynamicdrive.com/forums/showthread.php?t=31879[^]

        Brian McHugh

        1 Reply Last reply
        0
        • I Imran Khan Pathan

          mcmilan wrote:

          I am using window.close() to close the browser when I click the Button on my webpage.....It is working with InternentExplorer but not working with MozillaFireFox......Please help me........

          Post your code

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

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

          Hi Imran, I tried with the following code: 1. Response.write(' {window.close();}'); 2. " " " self.parent.close() 3. Above all are working in Internet explore but not in Mozilla Firefox... Thanking you Mcmilan.

          I 1 Reply Last reply
          0
          • M mcmilan

            Hi Imran, I tried with the following code: 1. Response.write(' {window.close();}'); 2. " " " self.parent.close() 3. Above all are working in Internet explore but not in Mozilla Firefox... Thanking you Mcmilan.

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

            mcmilan wrote:

            Above all are working in Internet explore but not in Mozilla Firefox...

            Does it is parent window? if YES then you can not close it in Mozilla but if it is popup window then this code will work Regard kHan

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

            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