WSGI ContainerのコマンドツールでJavaScript

WSGI ContainerのコマンドツールでJavaScriptを動かせるように実装してみた。ページのほうでJavaScriptのライブラリを読み込んでいるなら、そのAPIも利用可能なはず。(未確認)

E:\>containercmd -js
document.write(document.title+"<br>");
document.write("browser:" + navigator.appName);


ちなみにDelphiからTWebBrowerにJavaScriptを実行させるには以下のように書く。

with WebBrowser1.Document as IHTMLDocument2 do
  with parentWindow do
    execScript('document.write("hello");', 'JavaScript');