How to display a message after clicking on submit in javascript without using PHP.
Follow below steps
Like Below
<div id="msgDiv" class="message"></div>
Like Below
document.getElementById("msgDiv").innerHTML = "Message ";
There is something missing in your question (which message do you mean?), but this came me on mind:
document.querySelector("form").addEventListener("submit", function(){alert("message");});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.