JSFiddle - React, Tailwind, and code Playground
HTML
<head>
<script>
function $_GET(letter) {
var url = letter + '=';
var search = location.search;
search = search.replace('&', '?');
search = search.replace(';', '?');
search = search.split(url);
search = search[1].split('?');
return search[0];
}
function eat(){
var let = document.form.text.value;
document.write($_GET(let));
}
</script>
</head>
<body>
<form name="form">
Find <input type="text" name="text"><br><br>
</form>
<button onclick="eat()">Find</button>
</body>