A
alcool
hi,
I need to understand which button (between more) i have pressed
I try to explain myself better ...
I have 2 push-buttons
<input type= " button " id= " Btn1 " value= "... "onclick= " funct();
">
<input type= " button" id= " Btn2" value="..." onclick= " funct (); ">
and
function funct () {
if (//here I must understand what it has been pressed)
document.getElementById ("Box1") .value = "you have pressed 1";
else
document.getElementById ("Box2") .value = "you have pressed 2";
}
how I make?
please help
I need to understand which button (between more) i have pressed
I try to explain myself better ...
I have 2 push-buttons
<input type= " button " id= " Btn1 " value= "... "onclick= " funct();
">
<input type= " button" id= " Btn2" value="..." onclick= " funct (); ">
and
function funct () {
if (//here I must understand what it has been pressed)
document.getElementById ("Box1") .value = "you have pressed 1";
else
document.getElementById ("Box2") .value = "you have pressed 2";
}
how I make?
please help