Popup window prevention

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Poulos

    Popup window prevention

    If I try to open a window using this code:

    window.onload = function() {
    document.onkeyu p = function(k) {
    if (!k) {
    k = window.event;
    k.which = k.keyCode;
    }
    // 10 is return and 13 is enter
    if (k.which==10 || k.which==13) window.open("co ntent/ind.html");
    }
    }

    then if I have a popup-blocker in place it, which of course it
    shouldn't, won't open (unless there's a bug in my code). The question
    then is, is the only user input that will open a new window (a popup) a
    mouse click?


    Andrew Poulos
  • kaeli

    #2
    Re: Popup window prevention

    In article <4189f4d4$0$653 7$5a62ac22@per-qv1-newsreader-01.iinet.net.au >,
    ap_prog@hotmail .com enlightened us with...[color=blue]
    >
    > then if I have a popup-blocker in place it, which of course it
    > shouldn't, won't open (unless there's a bug in my code). The question
    > then is, is the only user input that will open a new window (a popup) a
    > mouse click?[/color]

    It depends very highly on the popup blocker.


    --
    --
    ~kaeli~
    The Bermuda Triangle got tired of warm weather. It moved to
    Finland. Now Santa Claus is missing.



    Comment

    Working...