Sux0rZh@jc0rz
08-08-2003, 11:56 AM
Newb = me. n00b = not me. just like to say that.
I have this code (with thanx to exuro) that will have a textarea post to the page when u hit enter, it goes like this:
<html>
<head>
<script type="text/javascript">
<!--
function displayText(str) {
document.getElementById('displayArea').innerText=str;
return false;
}
//-->
</script>
</head>
<body>
<form name="form1" onSubmit="return displayText(this.text1.value);">
<input type="text" name="text1" maxlength="55" size="100" />
</form>
<br /><br />
<div id="displayArea"></div>
</body>
</html>
could anyone explain to me/show me/post the code to make the field clear after u hit enter and it posts it to the page? cause hitting delete just takes to long=P
I have this code (with thanx to exuro) that will have a textarea post to the page when u hit enter, it goes like this:
<html>
<head>
<script type="text/javascript">
<!--
function displayText(str) {
document.getElementById('displayArea').innerText=str;
return false;
}
//-->
</script>
</head>
<body>
<form name="form1" onSubmit="return displayText(this.text1.value);">
<input type="text" name="text1" maxlength="55" size="100" />
</form>
<br /><br />
<div id="displayArea"></div>
</body>
</html>
could anyone explain to me/show me/post the code to make the field clear after u hit enter and it posts it to the page? cause hitting delete just takes to long=P