+ 2

When I Press The Button How To Make an Alert

I Want to Prank People Sombody Click The Button Then Shows A Alert Make The JS Command Plz

31st May 2020, 7:03 AM
Catafrancia Mapper
Catafrancia Mapper - avatar
3 Réponses
+ 3
Goto Code section. Choose Most Popular option. Search "alert button". You can find some of example as your need. Thank you 🙏🏻 Catafrancia Mapper
31st May 2020, 7:06 AM
Scooby
Scooby - avatar
+ 11
Button.onclick =()=>{ Alert("hello") }
1st Jun 2020, 12:15 PM
Coder
Coder - avatar
+ 2
<!doctype html> <html> <head> <script type=text/javascript> function click(){ Var a=alert("This is an Alert box"); } </script> </head> <body> <input type=button value=button onClick=click()> </body> </html>
31st May 2020, 8:43 AM
Omkar Kamat
Omkar Kamat - avatar