if you click just below demonstration word then also the input type file will click.
how to avoid that , so click event fire only on that area whatever size i have given .
<!DOCTYPE html>
<html>
<body>
<style>
input{
border:3px solid red;
width:10px;
}
</style>
<h3>A demonstration of how to access a File Upload Button</h3>
<input type="file" id="myFile">
</body>
</html>
answer won't acceptable if you will wrap this input type file with another element like label , div for security reason. is it possible then ?
<input type="file">within an element?<input type="file">within an element?trustedthat event can be used to dispatchclickevent at<input type="file">from another element event handler, whether or not the<input type="file">element is a child element of that element.