How to useing javascript do a command ?

 From:  Kondou
10474.3 In reply to 10474.2 
dear Michael Gibson:

<moi:PushButton onclick="moi.command.execCommand( 'polyline' );">Polyline button</moi:PushButton>

is working!

thanks you!