First, grab the value of the field when the button is clicked so you have the current content:
function ok() {
var val = document.getElementById( "euro" ).value;
...
}
Then, convert the value that you grabbed to a number. Content in the DOM is always a string:
function ok() {
var val = document.getElementById( "euro" ).value;
var eurosNumber = Number( val );
...
}
Note that I'm using Number instead of parse*.
I'm assuming that you may type either an integer (1, 20, 25, etc.) or a fractional number (1.50, 10.25, 20.34, etc.) into the field.
You can do the same conversion with parseFloat or parseInt but this is more explicit that you're converting [some string] to a Number.
Just watch out: if the string isn't a valid number, there will be an error (Number( [not a number] ) will return NaN)!
Finally, do your addition:
function ok() {
var val = document.getElementById( "euro" ).value;
var eurosNumber = Number( val );
document.getElementById( "coins" ).innerHTML = eurosNumber + 100;
}
ok()method.