
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script type="text/javascript"> function sprawdz() { document.getElementById("komunikat").innerHTML = "wyswietlam komunikat"; } </script> </head> <body> <form> <input type="text" id="pole" /> <input type="submit" value="Sprawdź" onclick="sprawdz()"/> </form> </body> </html>