Resource's
<html> <head> <script> function validateForm() { let x = document.forms["myForm"]["fname"].value; if (x == "") { alert("Name must be filled out"); return false; } } </script> <body> <form name="myForm" action="/action_page.php" onsubmit="return validateForm()" method="post"> Name: <input type="text" name="fname"> <input type="submit" value="Submit"> </form> </body> </head> </html> background-image: url('hhhhhhh'); height: 100vh; background-position: center; background-size: cover; background-image: linear-gradient(to right, red , yellow); } Bg color name:#f8e1f2 <button id="correct">k kelappan</button> var button = document.getElementById("correct"); button.onclick = function(){ alert("correc...