Arc Forumnew | comments | leaders | submitlogin
6 points by timb 6169 days ago | link | parent

  <html><body><script type="text/javascript">
  (function (){
    d = document; b = d.body
    function nu(n,t){
      var e = d.createElement(n)
      if(t.h) e.innerHTML = t.h
      for(var k in t) e[k] = t[k]
      return e
    }
    function ad(o){ b.innerHTML = ''; for(var i=0, o; o=arguments[i]; i++) b.appendChild(o) }
    ad(
      nu('input', {id: 'foo'}),
      nu('button', {h: 'go', onclick: function(){
        f = d.getElementById('foo').value
        ad(
          nu('a', {h: 'click here', onclick: function(){
            ad( nu('p', {h: 'you said ' + f}) )
        }}))
    }}))
  })()
  </script></body></html>