<!DOCTYPE HTML>
<html>
<head></head>
<body>
<div id="inner">
<input type="text">
<input type="text">
<input type="text">
</div>
<hr>
<div id="url">
<input type="text">
<input type="text">
<input type="text">
</div>
<hr>
<div id="result">
<input type="text">
<input type="text">
<input type="text">
</div>
<hr>
<input onclick="Result()" type="button" value="Result">
<script>
var elems = ['inner', 'url', 'result'], i;
for(i in elems) window[elems[i]] = document.getElementById(elems[i]).getElementsByTagName('input');
function Result() {
for(i=0; i<name.length; i++) result[i].value = '<a href="' + url[i].value + '">' + inner[i].value + '</a>';
}
</script>
</body>
</html>