<html>
<head><style>body {min-height: 300px;} input { font-size: 16px; } textarea { font-size: 16px; } </style></head>
<body>
<h3>YouTube</h3>
<input id="searchInput" type="text" placeholder="Search YouTube">
<br>
<button onclick="search()">Search</button>
<script>function search() {
var searchTerm = document.getElementById("searchInput").value;
console.log("Finding videos for " + searchTerm);
}</script>
</body>
</html>]]>Make sure to select searchTerm
.