<html>
<head>
<title>foo</title>
<script type="text/javascript">
function foobar() {
var textarea = document.getElementById("foo");
alert(textarea.value.length);
}
function bar() {
var textarea = document.getElementById("foo");
//textarea.setSelectionRange(3,7);
textarea.value = "A\r\ntext\r\nfield";
textarea.focus();
}
</script>
</head>
<body>
<p>Test</p>
<form>
<textarea id="foo">A
text
field</textarea>
<br />
<input type="submit" onclick="foobar(); return false;"
value="Length" />
<br />
<input type="submit" onclick="bar(); return false;"
value="Modify" />
</form>
</body>
</html>-- Kevin Ballard [EMAIL PROTECTED] http://www.tildesoft.com http://kevin.sb.org
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ webkit-dev mailing list [email protected] http://www.opendarwin.org/mailman/listinfo/webkit-dev
