<script>
var url = window.prompt("Goto URL:","https://");
document.write("<a href=\""+url+"\">CLICK ME LOL</a>");
</script>