So I've been working in html/javascript for the first time and I need to get user input through boxes/buttons and use that data to call a function, something like this:
<input id="xstart" type="number" min="0" max = "100"/>
<input id="ystart" type="number" min="0" max = "100"/>
<input id="zstart" type="number" min="0" max = "100"/>
<input id="clickit" type="button" value="click" onclick="myfunc(xstart, ystart, zstart);" />
function myfunc(num0, num1, num2) { do things with it }
I cannot figure out how to get this to work, it does seem to call myfunc but it crashes because the values in xstart, ystart and zstart are not actually numbers, I think they are strings but I am not sure.
Any help or links to tutorials on things like this for a first time programmer would be helpful. Thank you.