function createFormData (name, text1, text2) { var x = new FormData (name, text1, text2); x.checkSame(); }
</SCRIPT> </HEAD> <BODY> <FORM> Name your object:<input type=text name="txtName"> Enter first text:<input type=text name="txtFirst"> Enter second text:<input type=text name="txtSecond"> <input type=button value="Do It!" onClick="createFormData (txtName.value, txtFirst.value, txtSecond.value);"> </FORM> </BODY> </HTML>