hiya all
i would like to ask some help for a little javascript, here's my problem:
i have a html page with a <input type="file"> box, problem is i don't want the user to be able to write on the text field, he must use the browse button.
i tried a lot of codes but no one works for both IE and firefox
i tried to use onclick="blur",m but in that case the field and "browse button" didn't work
here's what i've done:
<form name="form1">
<input type="file" name="insertdoc" onclick="document.form1.otherinput.focus()">
<input type="hidden" name="otherinput">
</form>
works for firefox, you cannot write on the field, but browse button works well, problem is, this code don't work on IE error says: "can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus" well...IE, i hate you!
i tried to send my focus to another text field, in that case, browse button don't work....anyone with an idea how i can do this to work on IE?
thanks a lot for your help
Rei