How to remove the “No file chosen” tooltip from a file input in Chrome with HTML?

Spread the love

To remove the "No file chosen" tooltip from a file input in Chrome with HTML, we set thr title attribute to a string with a space.

For instance, we write

<input type="file" title=" " />

to add a file input with the title attribute set to a space to make the tooltip empty to remove the message.

Leave a Reply

Your email address will not be published. Required fields are marked *