JSFiddle - React, Tailwind, and code Playground

HTML

<form id="theForm" method="post" action="save.php">
    <input name="action" value="edit">
</form>

JavaScript

var form = document.getElementById("theForm");

alert( form.action ); // Alerts HTMLFormElement in most browsers
alert( form.getAttribute("action") ); // Alerts "save.php"
alert( form.method); // Alerts "post" because no input with name "method" exists