+ 3
How do i do- if button pressed then value = true and use the value in js
i want to create a button which, when pressed will initiate a alert code saying "button pressed"
5 Respostas
+ 6
<button type="submit" onclick="alert('button pressed');">Press me!</button>
Handle the onclick JS event, check https://www.sololearn.com/learn/JavaScript/2758/
+ 6
You're welcome. Glad you found it useful :)
+ 3
Wanthanai I see that this is your first post on SoloLearn.
Well here is your 1 lesson pal,
unhelpful answers are not appreciated here
+ 2
thanks man..
exactly what i needed
- 1
g