Z.N.S.: input bzw div automatisch mit formulareingabe ändern

Beitrag lesen

abend,

aber nur weil heute so schönes wetter war ;-)
..ansonsten http://de.selfhtml.org/


<HTML><HEAD><TITLE> buildEMail </TITLE>
<script type="text/javascript">
function copyValue() {
 curName = document.getElementsByName("name")[0].value;
 curEmail = ( document.getElementsByName("email")[0].value.length <= 0 )
    ? 'no@email.com'
    : document.getElementsByName("email")[0].value;
 outputstring = curName + " <" + curEmail + ">";
 document.getElementsByName("output")[0].value = outputstring
}
</script>
</HEAD>
<BODY>
Name: <input type="text" name="name" onKeyUp="copyValue()"><br>
EMail: <input type="text" name="email" onKeyUp="copyValue()"><br>
<hr>
Output:
<input type="text" name="output" size=50 readonly>
</BODY>
</HTML>


mfg,
(tanz das)
Z.N.S.

--
<img src="http://www.comunicout.com/zebulon/en.gif" border="0" alt="">
.:LIFE ON OTHER PLANETS IS DIFFICULT:.