View video tutorial

HTML onbeforeunload Attr

HTML

The HTML accept attribute is used with the <input type="file"> element to specify what type of file the user can select for upload.

Applies to

This attribute can be used on the following element.

Attribute Element
onbeforeunload <body>