Skip to content

Tag Archives: firefox popups javascript rickroll

Why destination-based popup blocking fails

Johnf mused about hav­ing fire­fox allow pop­ups based on des­ti­na­tion, rather than source. Here’s why it’s a non-triv­ial prob­lem. <script type=“text/javascript”> <!– // Sure­ly google should be an allow­able des­ti­na­tion, right? leetwin =‘’, ‘leetwin’); // Oth­er javascript stuff. // Nev­er gonna give you up. leetwin.location = ‘’; –> </script>