Copy code The code is as follows: No refresh upload File <br> function startUpload() { <br> document.getElementById('processing').innerHTML = 'loding...'; <br> return true; <br> } <br> function stopUpload(rel){ <br> var msg ; <br> switch (rel) { <br> case 0: <br> msg = "Upload successful"; <br> break; <br> case 1: <br> msg = "The uploaded file exceeds the limit"; <br> break; <br> case 2: <br> msg = "Only image files can be uploaded"; <br> break; <br> default: <br> msg = "File upload failed"; <br>} <br>Document.getElementById('processing').innerHTML = msg; <br> } <br> text-align:center"> < input type="file" name="myfile" /> < ;iframe style="width:0; height:0; border:0;" name="form-target">