<html><body><form id="myF"><input id="myButton" type="button" value="Show my parent" onclick="function1();"></form><script language="JavaScript"> function function1() { var m = document.all.myButton.parentElement.id; alert("Parent element: <FORM>, ID = "+'"'+m+'"'); } </script>
Name (required)
email (will not be published) (required)
Website