The below copy-paste code can be used to create an input box using Javascript.
<html>
<head>
<title>Javascript Input Box</title>
<script language="javascript" type="text/javascript">
function jsInputBox()
{
var tlink=prompt("Enter the Link Here","");
if(tlink!="")
{
alert(tlink);
}
else
{
alert("No Input Received");
}
}
</script>
</head>
<body>
<a href="javascript: jsInputBox();">Demo of Javascript Input Box</a>
</body>
</html>