JavaScript: Calculations/Sum

admin

Administrator
Staff member
:confused:
Here I go again...
I'm working on a new tutorial that states the following:

Q3. create a function name sum() that calculates the row, column, and main diagonal totals and then stores those values in the appropriate input fields in the form. After performing these calculations, it should run the test_square() function, testing whether the square is magic.

Q8. Add an onload event handler to the web page to (a) set the focus () of the cursor to the cell1 field and (b)select the contents of the cell1 field.

Q9. Add an event handler to the cell9 field so that when that field loses the cursor focus, the focus is given to the cell1 field. This keeps the cursor within one of the nine cell fields of the magic square.

I have all the other questions in place but am not sure how to proceed with the ones above.

I've attached the file so you can look at it and see what/where I should proceed. I can use all the feedback I can get.

Thanks!!!!!!!!
 
Back
Top