I have a global Variable.
var w = 4;
and a function:
function do() {
width = w;
//make something
}
and now i want to change the variable w to 8 with a button.
<input type="button" onclick="do(w = 8;)" value="set 8">
that the function can work with w = 8 and forget the old w = 4!