The focus() method is used to set focus to the FileUpload object. Using the focus method to set focus to FileUpload box Enter Filename: Confirmation Message: