<!DOCTYPE html>
<html>
<head>
<title>ファイルパス表示アプリ</title>
</head>
<body>
<input type="file" id="fileInput">
<div id="filePath"></div>
<script>
document.getElementById('fileInput').addEventListener('change', function() {
let filePath = this.value;
document.getElementById('filePath').innerText = `選択したファイルのパス: ${filePath}`;
});
</script>
</body>
</html>
ジョーク: プログラマーがコーヒーをこぼしたら、コードがジャバになる。