שאלה ב - javascript
אני מנסה לבנות טבלה בצורה דינמית ולא מצליחה ליחס EVENT לשורה שלי (כאילו הEVENT מקבל STRING ולא מקושר לפונקציה) ולא קורה כלום - עזרה בבקשה: () newRow = window.OptTbl.insertRow " ()newRow.onclick = "doThis newRow.bgColor="pink" the quotes are messed up only because of the hebrew. the color works (because it really is a string?) but the ONCLICK doesn't do anything
אני מנסה לבנות טבלה בצורה דינמית ולא מצליחה ליחס EVENT לשורה שלי (כאילו הEVENT מקבל STRING ולא מקושר לפונקציה) ולא קורה כלום - עזרה בבקשה: () newRow = window.OptTbl.insertRow " ()newRow.onclick = "doThis newRow.bgColor="pink" the quotes are messed up only because of the hebrew. the color works (because it really is a string?) but the ONCLICK doesn't do anything