<!DOCTYPE html>id="frm1" action="demo-form"First name: type="text" name="fname" value="Donald"Last name: type="text" name="lname" value="Duck"type="submit" value="Submit"The value of the action attribute is:document.write(document.getElementById("frm1").action);