all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
3 out of 11 rated this helpful - Rate this topic

accept attribute | accept property

Sets or retrieves a comma-separated list of content types.

Syntax

HTML<element accept="p" ... >
JavaScript

p = object.accept

Property values

Type: String

Comma-separated list of content types.

Remarks

The information from the list can be used to filter out nonconforming files when prompting a user to select files to be sent to the server using the <input> element with type="file".

Examples of content types include "text/html", "image/png", "image/gif", "video/mpeg", "audio/basic", "text/tcl", "text/javascript", and "text/vbscript". For the current list of registered MIME types, see MIME Media Types.

There is no functionality implemented for this property unless defined by the author.

accept was introduced in Microsoft Internet Explorer 6

See also

input

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.