JSFiddle - React, Tailwind, and code Playground
by leiperte
HTML
Alarm Activated?
<input type = "button" id="breech" value="Yes" onclick="breech();">
<input type="button" id="safe" value="No" onclick="safe();">
<div id="output">
</div>
JavaScript
function breech(){
var msgbreech = "Alert!";
document.getElementById("output").innerHTML="Alert!";
}
function safe(){
var msgsafe = "You are safe.";
}