JSFiddle - React, Tailwind, and code Playground
by nnddcc
HTML
<ol>
<li>Copy the URL that you want to download and paste it into the textbox below.</li>
<li>Press 'Update Link'.</li>
<li>Right click the 'download link' below and download.</li>
</ol>
<input id="theurl" type="text" placeholder="http://localhost/something.txt" style="width: 400px" />
<button id="thebutton" type="button">Update Link</button>
<br/>
<p><a id="thelink" href="https://localhost/xyz.txt">Download Link</a></p>
JavaScript
$(function(){
$("#thebutton").click(function(){
var u = $("#theurl").val();
$("#thelink").attr("href", u);
$("#thelink").text(u);
});
});