www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 accept Property
ACCEPT Attribute | accept Property

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

Syntax

HTML<INPUT ACCEPT = sAccept... >
Scripting[ sAccept = ] INPUT.accept [ = v ]

Possible Values

sAcceptString that specifies or receives comma-separated list of content types.

The property is read/write. The property has no default value.

Remarks

accept was introduced in Microsoft Internet Explorer 6

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 World Wide Web link.

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

Standards Information

This property is defined in HTML 4.0 World Wide Web link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

INPUT
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG