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. Closing window in FireFox ?

Closing window in FireFox ?

Scheduled Pinned Locked Moved Web Development
javascripttutorialquestion
16 Posts 4 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 Michael Sync

    Oh yeah. it's strange.. Try this link... http://www.interwebby.com/blog/2006/02/04/3/ I'm also trying tooo.. I will let u know if i got it. let me know if you found the solution too...

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

    L Offline
    L Offline
    Luay Essa
    wrote on last edited by
    #5

    Michael Sync wrote:

    Try this link.

    Also this solution does not work !! I think this is the final answer: "You can only close a window with JavaScript that you opened with JavaScript. If your visitor opened the window then you can't close it." Check this: http://www.webdeveloper.com/forum/showthread.php?t=153088

    M P 2 Replies Last reply
    0
    • L Luay Essa

      Michael Sync wrote:

      Try this link.

      Also this solution does not work !! I think this is the final answer: "You can only close a window with JavaScript that you opened with JavaScript. If your visitor opened the window then you can't close it." Check this: http://www.webdeveloper.com/forum/showthread.php?t=153088

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #6

      yeah . seems like that.....

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      1 Reply Last reply
      0
      • L Luay Essa

        Michael Sync wrote:

        Try this link.

        Also this solution does not work !! I think this is the final answer: "You can only close a window with JavaScript that you opened with JavaScript. If your visitor opened the window then you can't close it." Check this: http://www.webdeveloper.com/forum/showthread.php?t=153088

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #7

        Actually, there is a workround. Try this:

        window.opener = top;
        window.close();
        

        Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

        L 1 Reply Last reply
        0
        • P Pete OHanlon

          Actually, there is a workround. Try this:

          window.opener = top;
          window.close();
          

          Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

          L Offline
          L Offline
          Luay Essa
          wrote on last edited by
          #8

          It did not work :( !! Remember that i test only on FireFox

          P 1 Reply Last reply
          0
          • L Luay Essa

            It did not work :( !! Remember that i test only on FireFox

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #9

            Curses to FireFox. Works fine in IE... darn it.

            Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

            V L 2 Replies Last reply
            0
            • L Luay Essa

              Michael Sync wrote:

              window.close(); doesn't work??

              Unfortunately, it does not work:(

              V Offline
              V Offline
              Vasudevan Deepak Kumar
              wrote on last edited by
              #10

              After executing the statement, did you see the JavaScript console for any error messages?

              Vasudevan Deepak Kumar Personal Homepage Tech Gossips

              L 1 Reply Last reply
              0
              • P Pete OHanlon

                Curses to FireFox. Works fine in IE... darn it.

                Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

                V Offline
                V Offline
                Vasudevan Deepak Kumar
                wrote on last edited by
                #11

                Pete O`Hanlon wrote:

                Works fine in IE

                It is actually a browser-cheat-trick. You cheat the browser by making it think that its window is your-own. As a new browser security patches come up, it is most likely that our workaround might cease to function.

                Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                1 Reply Last reply
                0
                • P Pete OHanlon

                  Curses to FireFox. Works fine in IE... darn it.

                  Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

                  L Offline
                  L Offline
                  Luay Essa
                  wrote on last edited by
                  #12

                  Pete O`Hanlon wrote:

                  Curses to FireFox.

                  FireFox is the best browser (for the web developers).

                  V P 2 Replies Last reply
                  0
                  • L Luay Essa

                    Pete O`Hanlon wrote:

                    Curses to FireFox.

                    FireFox is the best browser (for the web developers).

                    V Offline
                    V Offline
                    Vasudevan Deepak Kumar
                    wrote on last edited by
                    #13

                    True. I like the 'Javascript Console' very much. Even Venkman's Debugger is nice. Have you used it?

                    Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                    L 1 Reply Last reply
                    0
                    • V Vasudevan Deepak Kumar

                      After executing the statement, did you see the JavaScript console for any error messages?

                      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                      L Offline
                      L Offline
                      Luay Essa
                      wrote on last edited by
                      #14

                      There is no Error !!

                      1 Reply Last reply
                      0
                      • V Vasudevan Deepak Kumar

                        True. I like the 'Javascript Console' very much. Even Venkman's Debugger is nice. Have you used it?

                        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                        L Offline
                        L Offline
                        Luay Essa
                        wrote on last edited by
                        #15

                        Vasudevan Deepak Kumar wrote:

                        Have you used it

                        Without it, the javascript coding is more complex than building nuclear weapons.

                        1 Reply Last reply
                        0
                        • L Luay Essa

                          Pete O`Hanlon wrote:

                          Curses to FireFox.

                          FireFox is the best browser (for the web developers).

                          P Offline
                          P Offline
                          Pete OHanlon
                          wrote on last edited by
                          #16

                          I know - I do like it a lot. I was being ironic here.

                          Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

                          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