It's a thought, but I really don't think they're the same.  Popup menus are made with layers, they're not whole new pages.  And like I said, I have made this very same script work in Firefox.  Nothing is different about the program implementation at all, it's just not working in this instance.