form.encoding : Form Object : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Form Object »

 

form.encoding









The encoding property represents the type of encoding used by the form. It can be specified in the HTML


tag as the ENCTYPE attribute.

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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Form Object