Form Control JavaScript DHTML




function function1(form) {
    var elem = document.getElementById("myButton").form.id;
    alert(elem);
    return true; 



       type="button" 
       value="Get ID of this control's form" onClick="function1(this.form);">