I'm creating a Web Search Engine Here's my code:
<!-- Searching script -->
<script>
function show() {
const s = document.getElementById('inputId').value;
window.location.replace("https://www.google.com/search?q=" + s);
}
function clear() {
<!-- I do not know how to write the code for this part -->
}
</script>
<input onclick="clear()" type="button">Clear Browsing History</input>
<h1>Search The Web</h1>
<!-- Search Button and input -->
<form id="searchForm" onsubmit="event.preventDefault()">
<input type="search" name="searchField" id="inputId" placeholder="Search QuickSearch">
<input type="submit" value="Search" onclick="show()">
</form>
I don't really know how i would even do it