The JavaScript code to display an alert message when the \Submit\ button is pressed is:\n\n`document.getElementById("submit").addEventListener("click", function(){ alert("Form submitted successfully");});`
"Write a JavaScript code to display an alert message when the Submit button is pressed."?