Some javascript code?

Some javascript code?

Is it possible to write some javascript code in a cell event or  in a button ?