The encoding property represents the type of encoding used by the form. It can be specified in the HTML
Setting the encoding property will override the HTML ENCTYPE attribute.
<html> <head> <title> Using the encoding property for the Form object</title> </head> <body> <script language="JavaScript"> <!-- function getEncoding(){ var encodingType = document.form1.encoding; alert(encodingType); } --> </script> <form name="form1" action="post" enctype="application/x-www-form-urlencoded"> <input type="button" value="Get Encoding" onClick='getEncoding()'> </form> </body> </html>