Sample HTML function that reports the value of a text box named BasicTextBox.
Sub RunScript Msgbox BasicTextBox.Value End Sub