Anybody good with Javascript?

I have an tag and what i want is for when the user clicks on the image the file browser dialog appears, i have used Javascript briefly with functions but don't have much of an idea on how to accomplish the task in hand, any input would be appreciated :p