I have a button or link button. I want to open a window for file uploading by clicking the button or link button. Actually at that time I won't have any file upload control there. can any one tell me how to do it by using JavaScript?
+1
A:
<button onclick="window.open('the_page_containing_the_upload_form.html', 'Upload form')">Upload</button>
Fabien Ménager
2009-09-21 11:49:45
A:
I think you are asking that you want to open up the file upload dialog with a click of something other than the input element itself.
You can not just open up the file upload dialog since that is sort of a thing we call a security issue. You can style the input field to make it look like something else
epascarello
2009-09-21 12:17:16
Window for file uploading means OS file browser dialog.Actually I want to upload files like Gmail style..........
2009-09-22 06:04:38