A button on a form that goes to the first row in the primary rowset would have an onClick event handler like this:

function firstButton_onClick( )

   form.rowset.first( )