4 replies
Does anyone know a code for a pop under that can surpass Firefox's pop up blocker? I've searched all over the internet and none of them are working. Still getting blocked. I'd really appreciate it. Thanks.
#pop #unders
  • Profile picture of the author wayfarer
    The only popover/under that will not be blocked will be in response to a click. This click can be on anything, even the entire page.
    Originally Posted by Aliaksandr View Post

    Does anyone know a code for a pop under that can surpass Firefox's pop up blocker? I've searched all over the internet and none of them are working. Still getting blocked. I'd really appreciate it. Thanks.
    Signature
    I build web things, server things. I help build the startup Veenome. | Remote Programming Jobs
    {{ DiscussionBoard.errors[3299153].message }}
    • Profile picture of the author Aliaksandr
      Thanks a bunch. Do you happen to have a code like that one? I've searched through quite a few pop unders and the closest I could find was a pop under that was triggered when a button was clicked but not the entire page.
      {{ DiscussionBoard.errors[3300091].message }}
      • Profile picture of the author Aliaksandr
        Here's the one i found, but like I said I'm looking for the one that will trigger when they click anywhere:

        <SCRIPT LANGUAGE="JavaScript">

        function goNewWin() {

        //***Get what is below onto one line***

        TheNewWin =window.open("popunderexample.html",'TheNewpop','t oolbar=1,
        location=1,directories=1,status=1,menubar=1,
        scrollbars=1,resizable=1');

        //***Get what is above onto one line***

        TheNewWin.blur();

        }
        </SCRIPT>

        <CENTER>
        <FORM>
        <input type="button" VALUE="click me!" onClick="goNewWin()">
        </FORM>
        </CENTER>

        The code is pretty straightforward. First we set a function I titled "goNewWin()". That function allows us to call on the entire effect when we want to.
        Next you'll notice that the basic "window.open" pop-up window format is assigned to the variable "TheNewWin". That is so we can now affect the entire new window by simply attaching the effect to a single variable.
        Please note the lines in the code that suggest you get that entire new window text on one line. That's rather important if you're not a big fan of JavaScript errors. Finally we get to the line that makes the magic:
        TheNewWin.blur();
        Just as I said above, we attach the "blur()" effect to the variable name representing the entire new window. Please keep the empty parentheses after the blur command. You have to have those.
        I finished up the example by setting the function to fire using a basic form button:
        <CENTER>
        <FORM>
        <input type="button" VALUE="click me!" onClick="goNewWin()">
        </FORM>
        </CENTER>
        {{ DiscussionBoard.errors[3300236].message }}
        • Profile picture of the author wayfarer
          Originally Posted by Aliaksandr View Post

          Here's the one i found, but like I said I'm looking for the one that will trigger when they click anywhere:
          Just use this exact script, but put the onclick event on the <body> opening tag (instead of on an <input> element as shown).
          Signature
          I build web things, server things. I help build the startup Veenome. | Remote Programming Jobs
          {{ DiscussionBoard.errors[3306964].message }}

Trending Topics