Spaces:
Running
Running
File size: 437 Bytes
88084b4 fd6085b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <!DOCTYPE html>
<html>
<head>
<title>Tourist App</title>
</head>
<body>
<h1>Tourist Guide App</h1>
<input type="text" id="city" placeholder="Enter city">
<button onclick="showPlaces()">Search</button>
<p id="result"></p>
<script>
function showPlaces() {
let city = document.getElementById("city").value;
document.getElementById("result").innerHTML =
"Top tourist places in " + city;
}
</script>
</body>
</html> |