Javascript reaction on click

How I can create an image which will fire some javascript action inside the grid, for example delete icon ?

There are multiple ways to provide javascript actions from cell

a) Use “link” excell and formated data
Text^javascript:Action^_self
Delete Alert?^javascript:confirmDelete(“some”)^_self
such code will create an A tag, with javascript action attached to it

b) Use “ro” excell and HTML value
<![CDATA[Text]]>
<![CDATA[Delete Alert?]]>

c) Use the setOnRowSelectHandler method
grid.setOnRowSelectHandler(my_func,true);
function my_func( rowId, cellIndex){
if (cellIndex==some_index)
confirmDelete(“some”)
}

d) create a custom excell