Wacl Test Page

This is a simple test page for running Tcl in the browser on the client side. Put your code in the box below and press Ctrl-Enter to eval it. For using the dom command, type e.g.:

::wacl::dom attr "#dom-d > span" textContent CHANGE
::wacl::dom css #dom-playground backgroundColor red
::wacl::dom css "#dom-playground li" borderColor blue
          
#dom-playground
div#dom-a
div#dom-b
div.dom-child
div#dom-c
    ul.dom-subchild
  • li
  • li
div#dom-d
span.dom-subchild