HBCMS更多的中文手册参考:

ACCEPT Attribute | accept Property

DHTML文档教程

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

dhtml语法

HTML<INPUT ACCEPT = sAccept... >
ScriptingINPUT.accept(v) [ = sAccept ]

DHTML可能的值

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

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

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 multipurpose internet mail extensions (mime) types, see mime types non-microsoft link.

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

是否符合公共标准

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

Applies To

INPUT