Cross-browser pop-unders
Saturday, 18. August 2007, 10:37:28
Here's the link: [url]http://www.omegajunior.net/code/popunder.html
This is what it does:
- Creates a window that looks like an MS Windows window, acting like a modal dialog
- Displays an arbitrary file or uri inside that window
- Hides the rest of the page behind a see-through layer to avoid click-throughs
- Makes specific other hyperlinks on the page open in the same modal dialog
It uses unobtrusive javascript. No AJAX. The window and all its elements are created in javascript entirely. Thus all that is needed is one single script reference. (The example page has the javascript embedded for easy reference.)
It's tested in all major browsers on the MS Windows platform and boy did they need a lot of tweaking. I got around most problems without hacks... all is outlined in the example page (it's too much to repeat, really).
Suggestions and test results welcome.








