如何控制让file表单对象只能选择不能编辑.
http://topic.csdn.net/t/20060417/17/4693138.html

如题.
实现文件路径的选取,但不允许在file表单对象的文本框中输入.

[Superren1982(西门飘雪)]
在file标签中加个onkeydown事件
如下:
onkeydown="event.returnValue=false;"
这样就可以阻止用户输入路径了

nameldw(安安)回复于 2006-04-18 10:09:35
<input type=file id=file_test name=file_test onkeydown="event.returnValue=false;">

[ilvs(【天使ηò哭】 2006-04-18 11:35:18 ]

onKeyDown="return false;"

这样浏览器通用.