August 1999
Intermediate to advanced
1488 pages
72h 53m
English
form.encoding
The encoding property of the Form object represents the type of encoding used by the form. It can be specified in the HTML <form> tag as the ENCTYPE attribute.
Note
Setting the encoding property will override the HTML ENCTYPE attribute.
In Listing 7.258, the encoding property of the Form object is used to get the type of encoding being used by the form.
<html>
<head>
<title> Using the encoding property for the Form object</title>
</head>
<body>
<script language="JavaScript">
<!-- Hide
// This function returns the encoding type for the specified form. function getEncoding(){ var ... |
Read now
Unlock full access