The following is an onClick event handler for a button that puts the form’s primary rowset—a data access component—in Append mode to add a new row.

function addButton_onClick( )

   this.form.rowset.beginAppend( ) // Use form property to get to other objects in form 

The following function uses the form variable instead of the form property, and behaves identically:

function addButton_onClick( )

   form.rowset.beginAppend( )