<html>
<head>
<title>Upload Image</title>
<meta http
</head>
<body bgcolor=
<form name=
<p><input type=
<input type=
<p><img name=
</body>
</html>
<SCRIPT LANGUAGE=
<!
function imgExceedSize(w
if(!document
if(picshow
alert(
return true;
}else{
return false;
}
}else{
return true;
}
}
function detect(){
var ok=imgExceedSize(
if(ok){
document
}else{
document
}
}
//
</SCRIPT>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19709.html