<input type="file" name="af" size="25" maxlength="1"/>你这样再试试?
解决方案 »
- 百度地图+JS+ASP.NET的问题
- 关于在JS中,子窗口刷新父窗口,子窗口仍保持焦点的问题?
- ext远程数据可以得到Array吗?
- showModalDialog的问题
- |zyciis| 求jquery选择器写法:class有A,但同时不能有B或C或D
- 如何判断radio和select是否选中?
- png图片上添加了事件“onclick”,可是使png的图片在IE6上实现透明后,添加在上面的“onclick”失效了,怎么回事?
- 大大,还得问你啊~~
- 如何知道用户点击了窗口右上角的放大(缩小)按钮
- 表单提交认证问题
- 关于iframe自适应高度的问题
- 框架结构中可以在一个页面里调用另一个页面的JS函数么?
<input type="file" name="af" size="25" maxlength="256"/>
改为
<input type="text" name="af" size="25" maxlength="256"/>
response.write"超长"
response.end
end if
function submit1()
{
if(form.af.value.length>256)
{
alert("超长!")
return false
}
}
</script>