Make your own free website on Tripod.com

LZX Methods in Javascript

  • Hello World

    <canvas width="200" height="200"> 
      <attribute name="counter" value="0" type="number"/>
      <text name="hw" x="20" fgcolor="#FF8080"
        onclick="parent.doclick()"> 
          Hello World
      </text> 
      <text x="200" text="${parent.counter}"/>
      <method name="doclick"> 
        counter++; 
      </method>
    </canvas>