Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jak zrobic allert w javascript
--Adamus--
post
Post #1





Goście







Witam jak zrobić allert w javascript zeby jak bede chcial wyslac
formularz i klikne wyslij to pokaże sie allert "Czy napewno chcesz wyslac ?" i butonny Tak i Nie

tak samo bym chcial bym z forma w <input type="reset" value="Wyzeruj > taka informacje czy chcesz wyzerowac i tak lub nie

Dziękuję prawie w ogole nie znam javascript
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
hondek
post
Post #2





Grupa: Zarejestrowani
Postów: 355
Pomógł: 50
Dołączył: 20.08.2007
Skąd: Częstochowa

Ostrzeżenie: (0%)
-----


faktycznie (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
  1. function taknie() {
  2. var answer = confirm ("Czy na pewno chcesz wysłać formularz?'");
  3. return answer;
  4. }
  5. </head>
  6. <form action="index.php" method="post" onsubmit="return taknie()">
  7. <input type="submit" value="ok" />
  8. </form>
  9. </body>
  10. </html>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 4.10.2025 - 11:52