pasar objeto en OnClick JavaScript

<input type='button' onclick='showTransreqForm( result.productsArray[i])' value='Go'
Happy Hare