[whatwg] JavaScipt in output?

Elliotte Harold elharo at metalab.unc.edu
Mon Mar 5 10:53:22 PST 2007


Consider this example of the output element from the spec:

<form>
  <p>
   <input name="a" type="number" step="any" value="0"> *
   <input name="b" type="number" step="any" value="0"> =
   <output name="result" onforminput="value = a.value * b.value">0</output>
  </p>
</form>


This is probably an obvious question, but is the language inside the 
onforminput attribute JavaScript? Is this stated anywhere in the WF2 
spec? Are there any restrictions on what you can put in such an attribute?


-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/



More information about the whatwg mailing list