Yeah, I'd think JS would be a lot of what would need to go into this. But, as we're at PHP Builder, I figured, what the heck, try <?php..... 🙂
I once saw a site where you could code in the left frame and view the output in the right. Pretty cool...can't help you by naming it, though 🙁