Is it possible to rename a subpage to searched word?
So for example if you search "abc" in the search box (made using the code below)
<input name="name" type="search">
<button type="submit">search</button>
Then the site would send you to subpage called "abc"
https://examplewebsite.com/abc
EDIT:
Thanks to Justinas for telling me the answer. To get this working you need to change these 2 lines to
<input type="text" id="name">
<input type="submit" value="Search" onclick="Search(name)" />
and then create a new file <your file>.js, then just add a function
function Search(name) {
var name = document.getElementById("name").value;
window.location.href = name
}
Finally, you have to add a line to your website "head" so it reads the javascript file.
<script type="text/javascript" src="search.js"></script>