• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    window.closed always false when pop-ups setting set to block all pop-ups

    Opera for Windows
    3
    5
    4169
    Loading More Posts
    • 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.
    • alexysche
      alexysche last edited by

      When I try this code:

      var wnd = window.open(...);
      setInterval(function(){ if(wnd.closed !== false) alert("closed");}, 500);
      

      And settings "pop-ups" is: "block all pop-ups", alert("closed") will never work!

      Is it bug, how to fix it?

      Reply Quote 0
        1 Reply Last reply
      • sgunhouse
        sgunhouse Moderator Volunteer last edited by

        Which version of Opera?

        I know Presto (Opera 12 and earlier) did that intentionally - so that sites wouldn't kick you out for blocking their pop-ups. I don't know what current versions do.

        Though you're in the wrong part of the forum - this area is for discussing the "My Opera" website.

        Reply Quote 0
          1 Reply Last reply
        • alexysche
          alexysche last edited by

          Originally posted by sgunhouse:

          Which version of Opera?

          12.15

          Originally posted by sgunhouse:

          I know Presto (Opera 12 and earlier) did that intentionally - so that sites wouldn't kick you out for blocking their pop-ups. I don't know what current versions do.

          Though you're in the wrong part of the forum - this area is for discussing the "My Opera" website.

          Sorry, you can move this post to the right part of the forum? I saw this text: "Feedback, requests and bug reports about My Opera community." and it confused me. 🙂

          Reply Quote 0
            1 Reply Last reply
          • sgunhouse
            sgunhouse Moderator Volunteer last edited by

            Yeah, 12.15 is Presto.

            Moved to Opera Browser.

            Reply Quote 0
              1 Reply Last reply
            • blackbird71
              blackbird71 last edited by

              Originally posted by sgunhouse:

              ... I know Presto (Opera 12 and earlier) did that intentionally - so that sites wouldn't kick you out for blocking their pop-ups. ...

              Hmmm. And then we wonder why a number of website coders either refused to code their sites for Presto or actively sniffed against it... just sayin' 😉

              Reply Quote 0
                1 Reply Last reply
              • First post
                Last post

              Computer browsers

              • Opera for Windows
              • Opera for Mac
              • Opera for Linux
              • Opera beta version
              • Opera USB

              Mobile browsers

              • Opera for Android
              • Opera Mini
              • Opera Touch
              • Opera for basic phones

              • Add-ons
              • Opera account
              • Wallpapers
              • Opera Ads

              • Help & support
              • Opera blogs
              • Opera forums
              • Dev.Opera

              • Security
              • Privacy
              • Cookies Policy
              • EULA
              • Terms of Service

              • About Opera
              • Press info
              • Jobs
              • Investors
              • Become a partner
              • Contact us

              Follow Opera

              • Opera - Facebook
              • Opera - Twitter
              • Opera - YouTube
              • Opera - LinkedIn
              • Opera - Instagram

              © Opera Software 1995-