<!DOCTYPE html>id="frm1" action="form_action.asp" method="get"First name: type="text" name="fname" value="Donald"Last name: type="text" name="lname" value="Duck"type="submit" value="Submit"The method for sending form-data is:document.write(document.getElementById("frm1").method);