vijay Posted April 5, 2007 Share Posted April 5, 2007 Hi... I have form with file button in webpage. I want to do validate it. my validation criteria.. user can only browse the button and add file. user has no access to wright in text box besides browse button.. actually I have done <input type="file" name="filename" id="filename" onkeyup="this.value='';" > But this is working only for Firefox not in IE.. Thanks in advance..Regards,Vijay Link to comment Share on other sites More sharing options...
pulpfiction Posted April 5, 2007 Share Posted April 5, 2007 Try this...<input type="file" onkeypress="return false;" onkeyup="return false;" onkeydown="return false;"/> Link to comment Share on other sites More sharing options...
jesh Posted April 5, 2007 Share Posted April 5, 2007 or this: <input type="file" onkeypress="blur();" onkeyup="blur();" onkeydown="blur();"/> Link to comment Share on other sites More sharing options...
vijay Posted April 6, 2007 Author Share Posted April 6, 2007 Hi.. Thanks to both of you.. Regards,Vijay Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now