<html> <body> <form id="myForm" method="post"> <button onclick="alert(document.all.myForm.encoding);">encoding</button> <button onclick="alert(document.all.myForm.enctype);">enctype</button> </form> </body> </html>