JSFiddle - React, Tailwind, and code Playground

by Andrew Dunai

HTML

http://<input type="url" id="URL" value="">
<button onclick="webFunct()">Go!</button>
<br>Your URL:<span id="ViewURL">(none)</span>

<script>
function webFunct() {
    var x = document.getElementById("URL").value;
    document.getElementById("ViewURL").innerHTML = x;
    document.getElementById("web-view").src = 'http://' + x;
}
</script>

    <iframe id="web-view" width="100%" height="640px" name="WebViewer">
</iframe>