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. JavaScript
  4. How to close all pop-up on click on logout

How to close all pop-up on click on logout

Scheduled Pinned Locked Moved JavaScript
helpjavascripttutorialquestion
6 Posts 3 Posters 8 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.
  • I Offline
    I Offline
    InderK
    wrote on last edited by
    #1

    Hi All, I am facing a problem in my application and need you guys help. The problem is to I want to close all the pop-up windows if user click on log out link or id user directly close the browser. I need to perform all this with the help of JavaScript. Is any one can please help me to solve this? One constraint is that I can not change existing modules. :( Thanks a lot in Advance. Thanks, RK...

    N P 2 Replies Last reply
    0
    • I InderK

      Hi All, I am facing a problem in my application and need you guys help. The problem is to I want to close all the pop-up windows if user click on log out link or id user directly close the browser. I need to perform all this with the help of JavaScript. Is any one can please help me to solve this? One constraint is that I can not change existing modules. :( Thanks a lot in Advance. Thanks, RK...

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      RajinderKamboj wrote:

      I can not change existing modules

      If you can't make any changes then how are you going to do anything? The first thing would be to redesign and not use popups. Otherwise you'll need to keep track of windows that are opened and close them during log out or on the close event of the main window


      I know the language. I've read a book. - _Madmatt

      I 1 Reply Last reply
      0
      • N Not Active

        RajinderKamboj wrote:

        I can not change existing modules

        If you can't make any changes then how are you going to do anything? The first thing would be to redesign and not use popups. Otherwise you'll need to keep track of windows that are opened and close them during log out or on the close event of the main window


        I know the language. I've read a book. - _Madmatt

        I Offline
        I Offline
        InderK
        wrote on last edited by
        #3

        Hi Mark, Thanks for reply. I mean of not change existing modules means I can not change each and every program which is opening the pop-up. I can change some of main programs. Can you please give me soluation for this? Thanks a lot once again. Thanks, RK..

        N 1 Reply Last reply
        0
        • I InderK

          Hi All, I am facing a problem in my application and need you guys help. The problem is to I want to close all the pop-up windows if user click on log out link or id user directly close the browser. I need to perform all this with the help of JavaScript. Is any one can please help me to solve this? One constraint is that I can not change existing modules. :( Thanks a lot in Advance. Thanks, RK...

          P Offline
          P Offline
          Prosanta Kundu online
          wrote on last edited by
          #4

          If you are opening the popup using a common function, then only you can track the windows and close all the popup windows if user clicks on logout.

          1 Reply Last reply
          0
          • I InderK

            Hi Mark, Thanks for reply. I mean of not change existing modules means I can not change each and every program which is opening the pop-up. I can change some of main programs. Can you please give me soluation for this? Thanks a lot once again. Thanks, RK..

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            InderK wrote:

            Can you please give me soluation for this?

            There is no solution if you don't have control over the apps that are opening the windows


            I know the language. I've read a book. - _Madmatt

            I 1 Reply Last reply
            0
            • N Not Active

              InderK wrote:

              Can you please give me soluation for this?

              There is no solution if you don't have control over the apps that are opening the windows


              I know the language. I've read a book. - _Madmatt

              I Offline
              I Offline
              InderK
              wrote on last edited by
              #6

              IS there any way to find out the URL of all opened browsers? Please reply. Thanks a lot. RK..

              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