PDA

View Full Version : Change my input/userfile edit content.


Cool-August
03-11-2006, 10:54 AM
Look at this:

<input name="userfile" type="file" style="width: 200; height: 30;" />

How can I change the edit's content?
I am quite sure that JS or VB is required for this.
And I already tried: "document.uploadfile.userfile",
but that just returns the text "[object]".

Please help, August.

Jon Hanlon
03-12-2006, 05:04 PM
You want document.uploadfile.userfile.value, but you cannot change it.
The Browser won't let you.
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/value_6.asp