embed iframe in html without allowing pop-ups from embed site?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • carolwebb
    Confirmed User
    • Jan 2020
    • 221

    #1

    embed iframe in html without allowing pop-ups from embed site?

    embed iframe in html without allowing pop-ups from embed site?

    example
    <iframe src="/embed/ph5e5962efe5d18" frameborder="0" width="560" height="315" scrolling="no" allowfullscreen></iframe>

    BCams
    :
    hard core redditor
  • sarettah
    see you later, I'm gone
    • Oct 2002
    • 14301

    #2
    Originally posted by carolwebb
    embed iframe in html without allowing pop-ups from embed site?

    example
    <iframe src="/embed/ph5e5962efe5d18" frameborder="0" width="560" height="315" scrolling="no" allowfullscreen></iframe>
    I don't think you can.

    I could be wrong, I often am.

    .
    All cookies cleared!

    Comment

    • xxx6live
      Confirmed User
      • Dec 2012
      • 279

      #3
      Originally posted by carolwebb
      embed iframe in html without allowing pop-ups from embed site?

      example
      <iframe src="/embed/ph5e5962efe5d18" frameborder="0" width="560" height="315" scrolling="no" allowfullscreen></iframe>
      You could try experimenting with the "sandbox" attribute, if you don't need scripts at all just add 'sandbox' in the iframe tag. Someone did this when embedding one of my sites, to stop the popup blocking JavaScript from working

      https://www.w3schools.com/tags/att_iframe_sandbox.asp
      .

      Comment

      • Klen
        • Aug 2006
        • 32235

        #4
        Originally posted by xxx6live
        You could try experimenting with the "sandbox" attribute, if you don't need scripts at all just add 'sandbox' in the iframe tag. Someone did this when embedding one of my sites, to stop the popup blocking JavaScript from working

        https://www.w3schools.com/tags/att_iframe_sandbox.asp
        .
        I tried that and it working. But anyway, embed sites does not rank any more so no point to bother with it.

        Comment

        • Denny
          Too lazy to set a custom title
          • Feb 2005
          • 17393

          #5
          Originally posted by xxx6live
          You could try experimenting with the "sandbox" attribute, if you don't need scripts at all just add 'sandbox' in the iframe tag. Someone did this when embedding one of my sites, to stop the popup blocking JavaScript from working

          https://www.w3schools.com/tags/att_iframe_sandbox.asp
          .
          Yes, this should work but I noticed it doesn't work if a visitor uses Firefox and your site is behind Cloudflare.

          Comment

          • Klen
            • Aug 2006
            • 32235

            #6
            Originally posted by Denny
            Yes, this should work but I noticed it doesn't work if a visitor uses Firefox and your site is behind Cloudflare.
            Worked fine with firefox when i tested it. Dont know for cloudflare.

            Comment

            • Denny
              Too lazy to set a custom title
              • Feb 2005
              • 17393

              #7
              Originally posted by Klen
              Worked fine with firefox when i tested it. Dont know for cloudflare.
              Yes, I meant a visitor must use FF AND your site must be behind Cloudflare, then it doesn't work for me.

              Comment

              • carolwebb
                Confirmed User
                • Jan 2020
                • 221

                #8
                Thank you very much. Great responses here.

                BCams
                :
                hard core redditor

                Comment

                • EddyTheDog
                  Just Doing My Own Thing
                  • Jan 2011
                  • 25433

                  #9
                  Originally posted by carolwebb
                  Thank you very much. Great responses here.
                  The browser in your sig is basically a thief - Stop encouraging theft...

                  Comment

                  • Klen
                    • Aug 2006
                    • 32235

                    #10
                    Originally posted by EddyTheDog
                    The browser in your sig is basically a thief - Stop encouraging theft...
                    Wot ?

                    Comment

                    • EddyTheDog
                      Just Doing My Own Thing
                      • Jan 2011
                      • 25433

                      #11
                      Originally posted by Klen
                      Wot ?
                      This is what Brave replaces YOUR ads with - https://brave.com/brave-ads-waitlist/

                      Comment

                      • Klen
                        • Aug 2006
                        • 32235

                        #12
                        Originally posted by EddyTheDog
                        This is what Brave replaces YOUR ads with - https://brave.com/brave-ads-waitlist/
                        Interesting, that sounds like zango.

                        Comment

                        • EddyTheDog
                          Just Doing My Own Thing
                          • Jan 2011
                          • 25433

                          #13
                          Originally posted by Klen
                          Interesting, that sounds like zango.
                          Damn - That's a blast from the past...

                          Blaze is a total scam - Pretending to be your friend but ripping off the people that make most of the internet possible - They advertise massively on FB and Google and fuck them at the same time - It's amazing...

                          Comment

                          • Klen
                            • Aug 2006
                            • 32235

                            #14
                            Originally posted by EddyTheDog
                            Damn - That's a blast from the past...

                            Blaze is a total scam - Pretending to be your friend but ripping off the people that make most of the internet possible - They advertise massively on FB and Google and fuck them at the same time - It's amazing...
                            That explain how they get money for advertising.

                            Comment

                            • carolwebb
                              Confirmed User
                              • Jan 2020
                              • 221

                              #15
                              Originally posted by EddyTheDog
                              The browser in your sig is basically a thief - Stop encouraging theft...
                              Thank you. I changed my signature. No more ads for Brave Browser.

                              BCams
                              :
                              hard core redditor

                              Comment

                              • EddyTheDog
                                Just Doing My Own Thing
                                • Jan 2011
                                • 25433

                                #16
                                Originally posted by carolwebb
                                Thank you. I changed my signature. No more ads for Brave Browser.

                                Cool - Sorry I hijacked your thread...

                                Comment

                                Working...