<html>
<head>
<script type="text/vbscript">
Function myFunction()
fname=InputBox("Enter your name",,,700)
document.getElementById("mySpan").innerHTML=fname
End Function
</script>
</head>
<body>
<button onclick="myFunction()">Click me</button>
<span id="mySpan"></span>
</body>
</html>