<fieldset name="box1"> <legend> FORM </legend> <input type="text" id="nmkey" placeholder="TYPE YOUR NAME HERE TO LOGIN"> <input type="text" id="pswvalue" placeholder="TYPE YOUR PASWORD HERE"> <button type="button" id="btninp"> SUBMIT </button> </fieldset> <script> const nmkey = document.getElementById("nmkey"); const pswvalue = document.getElementById("pswvalue"); const btninp = document.getElementById("btninp"); const fnl= document.getElementById("fnl"); btninp.onclick = function() { const key = nmkey.value; const value = pswvalue.value; console.log(key); console...
Comments
Post a Comment