프로그래밍에 익숙하지 않아 과제를 받았습니다. 작업은 다음과 같습니다어떻게 문자열의 단어를 자바 스크립트의 테이블에 넣을 수 있습니까?
은 하나의 픽셀 테두리, 회색 backgound에와 있는 테이블에서 "tx_val"문자열의 단어를 배치 "행 당 세 개의 세포를 사용하여 빈 세포는 단어 을 포함해야합니다.. "null". "
나는 이것을 알아 내려고 노력했지만 테이블은 계속 잘못 나왔다.
<html>
<head>
<script language="javascript">
<!--
function fred()
{
var tx_val=document.alice.tx.value;
len_tx=tx_val.length
-->
</script>
</head>
<body>
<form name="alice">
<b>Assignment #1 Javascript</b>
<p>
The text box below is named "tx". The form is named "alice".
<p>
<input type="text" name="tx" formname="alice" size="50" value="the quick brown fox jumped over the lazy dogs back">
</form>