Custom Action Code Example

Does anybody have an hosted javascript example of some simple code for developing a custom action along with the appropriate definitions of the feature?