I am making a small calculator (just for JavaScript learning) and I have two input fields for fraction calculation:
- Field: numerator
- Field: denominator
And a button "Calculate fraction" which executes the function myFraction(numerator,denominator)
when user clicks on it.
Is it possible to do the same without the Button? I mean JavaScript should recognize that someone is making input and then calculate the fraction automatically.