dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: pop up blocker promblem

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    29

    pop up blocker promblem

    is there a way to by pass pop up blocker

    with window.open


    iam using timed javascipt c=10 window.open (url)

  2. #2
    Join Date
    Feb 2012
    Location
    Tallahassee, FL
    Posts
    280
    I don't know of one with window.open but you could make a pop in div that has the content.

  3. #3
    Join Date
    Aug 2008
    Location
    Sweden
    Posts
    227
    There's a good reason why pop-ups sometimes are blocked - to prevent websites from spamming pop-ups whenever they want. However, I do think the pop-up is less likely to be blocked if you open it when the user clicks on a button. But NoEffinWay's solution, to use a pop-in, might be better if you really need the "pop-up" to show up every time.

  4. #4
    Join Date
    Nov 2012
    Posts
    24
    Pop ups can indeed be really annoying. Keep in mind that most visitors wont like them so be very careful when you use them (unless if you don't care about traffic).
    The best way to go is to take the actual pop up out of the equation and use partly what NoEffinWay said but you may want to place the div in a absolute way, keep it hidden and when you need to pop something up, rewrite it's contents, make it visible and maybe have an other div behind it in black color and medium opacity which you also make visible and give the impression of a pop up but in a less annoying, more fun and blocker bypassing way.

  5. #5
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    Quote Originally Posted by jase View Post
    is there a way to by pass pop up blocker with window.open
    iam using timed javascipt c=10 window.open (url)
    not with a timer.
    in non-firefox browsers, you must call window.open() from an element.onclick() handler, or call a function that calls window.open() from an onclick() handler.

    if the user clicks something to activate the code, the presumption is that they initiated the popup, so it's allowed. Without the click, it would be possible to launch a ton of popups from a page you didn't even touch...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles