JavaScript 參考手冊
form 屬性返回包含 FileUpload 對象的表單引用。
property 返回 form 對象。
所有主要瀏覽器都支持 form 屬性
下面的例子返回包含 <input type="file">元素所屬的表單的 id: