Skip to content
Related Articles

Related Articles

HTML | DOM Input FileUpload form Property

View Discussion
Improve Article
Save Article
Like Article
  • Difficulty Level : Basic
  • Last Updated : 14 May, 2021

The Input FileUpload form property in HTML DOM is used to return a reference to the form containing the file upload button. This is a read-only property and returns a form object on success.


Return Values: It returns a string value which specify the reference of the form containing the Input fileUpload field



<!DOCTYPE html>
        DOM Input FileUpload form Property
        <h1 style="color:green;"
          DOM Input FileUpload form Property
        <form id="gfgForm">
            Select a file to upload:
            <input type="file"
        <button onclick="myFunction()">
        <p id="demo">
            function myFunction() {
                var frmid =
                  "demo").innerHTML = frmid;



Supported Browsers: The browser supported by DOM Input FileUpload form Property are listed below: 

  • Google Chrome
  • Internet Explorer 10.0 +
  • Firefox
  • Opera
  • Safari


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!