When uploading files on the web, the upload box is used:
<Input type = "file" id = "F" name = "F">
This is a very special object in IE (others are not tested. If it is a value that you manually write or other objects are filled in after some events, due to security issues, it is often cleared when submitting a form, so the upload fails. To put it simply, ie will upload the file to you unless you have clicked F on the upload box!
Even if you assign the onclick handle of F to an object, for example:
<Input type = "file" id = "F" name = "F">
<Input onclick = "F. Click ()" value = "click">
After you click, the file selection dialog box will also pop up. Unfortunately, you are disappointed that you still cannot upload files! What should we do? Take a look at this section:
<Body onmousemove = "F. style. pixelleft = event. x-200; f. style. pixeltop = events. y-10;">
<Input type = "text"> <input type = "button" onmousemove = "">
<Input type = "file" id = "F" name = "F" style = "position: absolute;">
</Body>
Click the mouse to see the effect? Based on the above idea, we can get it under a button and it will be OK !!
<Br/> <style> input {border: 1px solid green ;}</style> <p>