'how to make a name based greeting alert in html form? [duplicate]
I want when I click the submit button, a pop up name-based greeting alert appears.
(sorry for my bad English)
Solution 1:[1]
Kind of like this maybe?
HTML element:
<button onclick="myFunction()">Click me</button>
in your js file:
function myFunction() {
alert("Hello my name is..")
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ccarver80 |
