Hi,
Is it possible to output the same "text" as hyperlink?
Now, as you see, the word specified - >link< is displayed.
Would like to display the word(s) that is input'ed...possible???
<html>
<head>
<title>Links</title>
<script type="text/javascript">
function CreateLink() {
var str = '';
str += '<a href="http://'+document.getElementById('Text').value+'">link</a>';
document.getElementById('link').innerHTML = str;
}
</script>
</head>
<body>
<input type="text" id="Text" value="http://www." size="21">
<button onclick="CreateLink()">Convert</button>
<br>
<div id="link"></div>
</body>
</html>
Thanks
Jimp