javascript - If I type "hello" into a text box, how can I make an alert appear by pressing a button? -


i create code make when type "hello" text box can press button below , alert pop-up appear. want add more of these different words well. should add code make work?

<!doctype html> <html> <head> <title>thisthat</title> <style>     body {         background-color: #333333;     }     .input, .output {        border: 0;     padding: 8px;     font-size: 14px;     }     .output {         background-color: #ff0000;     }     p {         font-size: 18px;     } </style> </head> <body> <center><h3>thisthat</h3></center> <center><p> if </p></center> <center><input placeholder="this..." class="input"></center> <center><p>then</p></center> <center><button class="output">that...</button></center> </body> </html> 

yes, javascript. there great online resources learning html, css , javascript: https://www.codeschool.com/ http://pluralsight.com/ http://teamtreehouse.com/


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -