开发者

In firefox we cannot write anything on textbox of fileupload control while in Internet explorer we can why?

i have used fileupload control in my webpage 开发者_运维百科but it show different behavior in internet explorer and firefox different behavior means in IE i can write anything on textbox, while firefox doesnot allow to do so why ? and how we can maintain consistency in both.


In short, you should find another approach than messing with file inputs, this is in place for security reasons, for example to prevent you from changing the value to this on submit:

C:\MyPasswords.txt

Ignore the fact IE lets you mess with it at all, why are you changing the text in that input anyway? There should be an alternative approach to what you're after.


The <input type="file" /> is a special tag which is rendered differently by browsers and you have no control over it and unfortunately there's not much you could do.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜