JSFiddle - React, Tailwind, and code Playground
by jasonwilczak
HTML
<form name="form1" id="form1" method="post">
</form>
<input type="submit" id="submit" name="check" onclick="check()">
JavaScript
document.addEventListener("DOMContentLoaded", whenLoaded, false);
function whenLoaded(){
alert(document.forms[0].method);
};