HTML DOM Input FileUpload disabled Property Last Updated : 16 Jun, 2023 Comments Improve Suggest changes Like Article Like Report The Input FileUpload disabled property in HTML DOM used to set or return whether a file upload field must be disabled, or not. A disabled field is unusable and un-clickable. It is a boolean attribute and used to reflect the HTML Disabled attribute. It is usually rendered in grey color by default in all the Browsers. Syntax: Return the disabled property:fileuploadObject.disabledSet the disabled property:fileuploadObject.disabled=true|false Property Values: true: It defines that the FileUpload field is disabledfalse: It has a default value. It defines that the FileUpload field is not disabled Return Value: It returns a boolean value that represents whether the Input FileUpload field is disabled or not. Example-1: Return FileUpload property HTML <!DOCTYPE html> <html> <head> <title> DOM Input FileUpload disabled Property </title> </head> <body> <center> <h1 style="color:green;"> GeeksForGeeks </h1> <input type="file" id="myFile" disabled="true"> <p id="demo"> </p> <button onclick="myFunction()"> Click </button> <script> function myFunction() { let x = document.getElementById( "myFile").disabled; document.getElementById( "demo").innerHTML = x; } </script> </center> </body> </html> Output: Example-2: Set the FileUpload property HTML <!DOCTYPE html> <html> <head> <title> DOM Input FileUpload disabled Property </title> </head> <body> <center> <h1 style="color:green;"> GeeksForGeeks </h1> <input type="file" id="myFile"> <p id="demo"> </p> <button onclick="myFunction()"> Try it </button> <script> function myFunction() { let x = document.getElementById( "myFile").disabled = "true"; document.getElementById( "demo").innerHTML = x; } </script> </center> </body> </html> Output: Before Click: Supported Browsers: Google Chrome 1+Mozilla Firefox 1+Edge 12+Opera 11+Safari 1+ Comment More infoAdvertise with us Next Article HTML | DOM Input FileUpload accept Property V Vijay Sirra Follow Improve Article Tags : Misc Web Technologies HTML Web technologies HTML-DOM HTML-Property +2 More Practice Tags : Misc Similar Reads HTML | DOM Input FileUpload accept Property The DOM Input FileUpload accept Property in HTML DOM is used to set or return the value of the accept attribute of the file upload button. The accept attribute specifies the types of files which are acceptable by that the server. Syntax: Return the accept property:fileuploadObject.acceptSet the acce 2 min read HTML | DOM Input Email disabled Property The Input Email disabled property in HTML DOM is used to set or return whether the Input Email field must be disabled or not. A disabled Input Email field is unclickable and unusable. It is a boolean attribute and used to reflect the HTML Disabled attribute. Syntax: It is used to return the disabled 2 min read HTML | DOM Input FileUpload form Property 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. Syntax: fileuploadObject.form Return Values: It returns a string value which specify the reference of the for 1 min read HTML | DOM Input FileUpload type Property The Input FileUpload type Property is used in HTML DOM to return the type of form element the file upload button is. This property will always return "file" for a file upload button. Syntax: fileuploadObject.type Return Value: It returns a string value that represents the type of form element the fi 1 min read HTML DOM Input FileUpload autofocus Property The Input FileUpload autofocus property in HTML DOM is used to set or return whether a file upload button should automatically get focus when the page loads, or not. Syntax: Return the autofocus property:fileuploadObject.autofocusSet the autofocus property:fileuploadObject.autofocus=true|false Prope 1 min read HTML | DOM Input FileUpload name Property The name property is used to set or return the value of the name attribute of a file upload button. The name attribute is used to identify form data after the submission to the server. Syntax: Return the name property:fileuploadObject.nameSet the name property:fileuploadObject.name=name Property Val 1 min read Like