File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Browse Button validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic

Browse Button validation

Shrikanth Nekkanti
Ranch Hand

Joined: Jul 12, 2007
Posts: 48
I have a browse button when user selects none and clicks upload i want to display an alert prompting user to select file for upload.

how to write javascript function for this.

I have created browse button like
<input type="file" name="data" >
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
I answered it here:

Closing this thread

I agree. Here's the link:
subject: Browse Button validation
It's not a secret anymore!