const form1name = document.getElementById("form1").name;
if (form1name !== document.form.form1) {
// Browser doesn't support this form of reference
}HTMLFormElement: name property / notebook
HTMLFormElement: name property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.