JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<input type="text" id="url">
<input type="button" value="Return cache" onClick="returnCache();">
<script>
function returnCache() {
var url = document.getElementById('url').value;
var cacheURL = ; // code searching XML file and returning the webcite url
document.getElementById('url').value = cacheURL;
}
</script>