<html><body><script language="JavaScript">function function1(form) { var elem = document.getElementById("myButton").form.id; alert(elem); return true; } </script><form id="myF"><input id="myButton" type="button" value="Get ID of this control's form" onClick="function1(this.form);"></form></body></html>
Name (required)
email (will not be published) (required)
Website