Adblock breaks this site

Beating Firefox antipopup in javascript

Discussion in 'Programming General' started by Xjaa, Mar 23, 2008.

  1. Xjaa

    Xjaa Penguin
    $100 USD Donor

    Joined:
    Jan 21, 2007
    Posts:
    3,248
    Referrals:
    2
    Sythe Gold:
    0
    Lawrence Potamus
    Beating Firefox antipopup in javascript

    Does anyone know how?
     
  2. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    Beating Firefox antipopup in javascript

    Java != Javascript

    Very odd, I was just helping someone on msn with this today.

    Firefox only allows popups that have been user-generated, such as clicking, typing, etc. You might need to generate an event yourself in order to get the popup. Why not just use <body onclick="window.open('etc')" /> instead? Sure, it requires a click, but it saves lines and lines of code.
     
  3. Xjaa

    Xjaa Penguin
    $100 USD Donor

    Joined:
    Jan 21, 2007
    Posts:
    3,248
    Referrals:
    2
    Sythe Gold:
    0
    Lawrence Potamus
    Beating Firefox antipopup in javascript

    No way we could possibly be the same person, since we have the same avatar?
     
  4. Xjaa

    Xjaa Penguin
    $100 USD Donor

    Joined:
    Jan 21, 2007
    Posts:
    3,248
    Referrals:
    2
    Sythe Gold:
    0
    Lawrence Potamus
    Beating Firefox antipopup in javascript

    No way we could possibly be the same person, since we have the same avatar?
    Does clicking on the [x] count as a click on the page
     
  5. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    Beating Firefox antipopup in javascript

    Oh.

    And no, it doesn't. :/
     
  6. Xjaa

    Xjaa Penguin
    $100 USD Donor

    Joined:
    Jan 21, 2007
    Posts:
    3,248
    Referrals:
    2
    Sythe Gold:
    0
    Lawrence Potamus
    Beating Firefox antipopup in javascript

    what is a good way to get someone to click on the page, since it's going ot be a rickroll.
     
  7. Xjaa

    Xjaa Penguin
    $100 USD Donor

    Joined:
    Jan 21, 2007
    Posts:
    3,248
    Referrals:
    2
    Sythe Gold:
    0
    Lawrence Potamus
    Beating Firefox antipopup in javascript

    What about onMouseover
     
  8. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    Beating Firefox antipopup in javascript

    onmouseover can be initiated without the user knowing, so Firefox disables it for popups.

    <body onclick='window.open("etc")'></body>

    If they click ANYWHERE on the page, then the popup will initiate.
     
  9. Xjaa

    Xjaa Penguin
    $100 USD Donor

    Joined:
    Jan 21, 2007
    Posts:
    3,248
    Referrals:
    2
    Sythe Gold:
    0
    Lawrence Potamus
    Beating Firefox antipopup in javascript

    doesn't seem to work. msn? get on it <
     
  10. speedster239

    speedster239 Forum Addict
    Java Programmers

    Joined:
    Jan 21, 2007
    Posts:
    313
    Referrals:
    0
    Sythe Gold:
    0
    Beating Firefox antipopup in javascript

  11. Olan14

    Olan14 Forum Addict

    Joined:
    Jan 26, 2007
    Posts:
    581
    Referrals:
    0
    Sythe Gold:
    0
    Beating Firefox antipopup in javascript

    it is truly a shame for anyone to call you a programmer, for java atleast. 'your' updater is a rip of ollie's old aresbot updater, and every piece of java code you've posted, on here and on moparisthebest, breaks many standards and usually doesn't even compile. javascripts syntax very highly resembles java's own, except for 'syntactic sugar' that javascript adds to its language for no purpose what so ever.
     
< My Questions Topic | Suggest A Project... >


 
 
Adblock breaks this site