Result:https://goodapps.w3spaces.com/tablecalc.html
I am creating a app called Aswin's TableCalc in html and I captured an issue.
I was using document.activelement to get to the active element, but when the Do calculation button is clicked the previous selcted input gets out of focus. I need to get the input that was focused before it got out of focus so that it could copy the calculation that it did from the function bar into the input that was focused.
I figured put there was a dom method called focus() to focus an element.