画像アプロードする際に画像を確認する
<html> <head> <title>画像アプロードテスト</title> <script language="JavaScript"> <!-- function geFilePath() { document.images["anyImage"].src = form1.filePath.value; } //--> </script> </head> <body> <div align="center"> <h1>アプロード</h1> <form name="form1"> <input type="file" name="filePath" onChange="geFilePath()"> </form> <!-- 選択した画像をここに表示 --> <img name="anyImage" border="0" src="" width="300" height="300"> </div> </body> </head>