Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body>
- <script>
- function myFunction() {
- var ime = document.getElementById("ime");
- var emial = document.getElementById("email");
- var msg = document.getElementById("msg");
- if (ime = " ") {
- document.getElementById("result").innerHTML = "Моля въведете име";
- }
- }
- </script>
- <form>
- <p id="result"> </p>
- <h1> Формуляр за контакти</h1>
- <p> Име: *</p>
- <input type= "text" id="ime" placeholder="Име">
- <p>Email: *</p>
- <input type="text" id="email" placeholder="Email">
- <p>Съобщение: *</p>
- <textarea id="msg" placeholder="Съобщение....."> </textarea>
- <p></p>
- <button type="button" onclick='myFunction()'>Изпрати</button>
- </form>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement