in reply to cgi and javascript

Yes!

Seriously: not much to add. They're (mostly) orthogonal concepts.