The following is the standard onSelChange event handler for a tabbox used to display the pages of a multi-page form.

function pageTabbox_onSelChange( )

   form.pageno := this.curSel 

The pageno of the form is changed to the corresponding tab number, reflected in the tabbox’s curSel property.