Update: Yes, I think this will be much better than php. I found a page that has a demo download link that does exactly what I want ...
http://www.xul.fr/en-xml-ajax.html
... so I'm pulling out the sources from the demo zip link near the bottom of that page.
K, you're like Dudley DoRight, always appearing to save the day.
Big thanks.
====== Off Topic UI Stuff =============================
Note: I'm building a web page with Coffee Cup VSD, great app, but below is yet another example of how what should be really obvious stuff gets lost in the "forest for the trees".
What you see below is the HTML editor in this app, the window where you'd manually type in HTML or JS or whatever else, and then place that object anywhere you want on the page. The concept actually works really great for design / layout purposes. Where it fails miserably is in it's own window design. The editor not only uses tiny fonts, but the window doesn't even resize. It's like the developers never actually even considered that someone might want to edit long scripts in it.
Under what circumstances would a developer not make that window sizable, and have larger fonts? Shades of some of Reaper's parts...