But now it’s history. The Perfect Popup is dead, long live The Perfect Pop-up.
After many years of sitting there advising about how to create accessible pop-up windows using inline event handlers (onclick), I have finally got around to updating this article using unopbtrusive JavaScript and also the accompanying Popup Window Generator (the two go very much hand in hand).
Please do take a look. If you can spot anything wrong with it, or perhaps you want to make a suggestion or two on how you can improve it, then please feel free to add something to the comments on this post.
- The Perfect Pop-up (article)
- Pop-up window generator (in the Tools and Wizards section)

Devon Young wrote:
Well done. This even works when the page is served as application/xhtml+xml!
Posted on 22-Mar-07 at 1:45 pm | Permalink
gérard aubrée wrote:
Excellent script I have installed in my website. I am using the console mode to edit an image without any white margin, but I have not succeeded yet.
Many thanks
Posted on 01-Apr-07 at 9:08 am | Permalink
Rachel wrote:
Love it, thank you! Using it on my website now.
Posted on 19-Apr-07 at 9:45 pm | Permalink
Martin Kliehm wrote:
Interesting. I tried a similar solution but somehow IE wouldn’t recognize my “rel” attributes. Perhaps because I used getAttribute(). I’m glad this works. The only nit I found is the spelling of “Nielsen”.
Posted on 29-Apr-07 at 11:00 am | Permalink
Ian Chamberlain wrote:
Many thanks Ian, a perfect solution for my least favourite web feature. If I simply have to use a pop-up, my will look like yours.
One small typo, the last example (A popup in standard mode (icon suppressed) ) is coded as console.
Posted on 03-May-07 at 2:00 pm | Permalink
Kevin wrote:
Could anyone advise on how to modify “The Perfect Popup” javascript so that it pops up centered in the desktop, instead of in the upper left hand corner? It would be very much appreciated
Thanks!
Posted on 12-Apr-08 at 8:34 pm | Permalink