Using the OnChange event
The example below is an HTML form that is used with a javascript function to calculate the cursor position in a terminal emulator.
When the row or column value in the form is changed, the function IdentifyScrnLoc is triggered and recalculates the screen position
The function call from the form on the webpage delivers two values to the function. The row number and the column number.
<INPUT TYPE = "text" ID = "lblScrnRow" NAME = "row" defaultValue = " 1 " SIZE = 3 MAXLENGTH = 2
OnChange = " IdentifyScrnLoc(row,col)" >
_ X _ <INPUT TYPE = "text" ID = "lblScrnCol" NAME = "col" defaultValue = " 1 " SIZE = 3
MAXLENGTH = 2 OnChange = "IdentifyScrnLoc(row,col)" >