¡@

Home 

javascript Programming Glossary: currentrow

Adding an onclick event to a table row

http://stackoverflow.com/questions/1207939/adding-an-onclick-event-to-a-table-row

table.getElementsByTagName tr for i 0 i rows.length i var currentRow table.rows i var createClickHandler function row return function.. td 0 var id cell.innerHTML alert id id currentRow.onclick createClickHandler currentRow EDIT Working Demo &rarr.. alert id id currentRow.onclick createClickHandler currentRow EDIT Working Demo &rarr Demo works in IE6 Chrome Firefox Code..

Using arrows-keys to navigate

http://stackoverflow.com/questions/3245398/using-arrows-keys-to-navigate

out of bounds you would need to restrict the values of currentRow and currentCell to the number of cells and prevent them from.. but they would make the example more complicated... var currentRow 0 var currentCell 0 function ChangeCurrentCell var tableRow.. var tableRow document.getElementsByTagName tr currentRow var tableCell tableRow.childNodes currentCell tableCell.focus..