<script type="text/javascript">
/* フォームデータのエンコード形式を取得 */
function fGetEncype(frmObj){
alert(frmObj.enctype)
}
</script>
<form enctype="application/x-www-form-urlencoded" action="#">
<p>
Name: <input type="text" value="hoge" />
<input type="button" onclick="fGetEncype(this.form)" value="フォームデータのエンコード形式を取得" />
</p>
</form>
<form enctype="multipart/form-data" action="#">
<p>
File: <input type="file" />
<input type="button" onclick="fGetEncype(this.form)" value="フォームデータのエンコード形式を取得" />
</p>
</form>
<form enctype="text/plain" action="#">
<p>
E-mail: <input type="text" value="hoge@domain.co.jp" />
<input type="button" onclick="fGetEncype(this.form)" value="フォームデータのエンコード形式を取得" />
</p>
</form>