Non proprio
codice:
<script language='javascript' type="text/javascript">
function mostra()
{
var hostname = document.getElementById('hostname');

document.getElementById("risposta").innerHTML = hostname.value+' '+gateway.value;
}
</script>
body:
<div id="risposta"></div>
Se posso, studiati una guida base che trovi in rete o qui html.it