Form Control JavaScript DHTML




function showFormElements(theForm){
    str="Form Elements: "
    for (i=0; i        str+=" \n " + theForm.elements[i].name
        alert(str)
    }




    First name: 
    

    Last name: 
    

    

                onClick="showFormElements(this.form)">