Show OSM Function Properties

May you show me OSM functions and properties list with example. So that I can use them according to my requirement. e.g how to raise click event,draw line etc…

http://trac.openlayers.org/wiki/Documentation