Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
  3. <head>
  4. <title></title>
  5.  
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <script type="text/javascript">
  8. function przetworz()
  9. {
  10. var imie=document.getElementById("pole").value;
  11. document.write(imie.toUpperCase()+ "<br />");
  12. document.write(imie.toLowerCase()+ "<br />");
  13.  
  14.  
  15. for (i=0;i<=imie.length; i++)
  16. {
  17. if (i==0)
  18. {
  19. document.write(imie.charAt(0).toUpperCase());
  20. }
  21. else
  22. {
  23. document.write(imie.charAt(i));
  24. }
  25. }
  26.  
  27.  
  28.  
  29.  
  30. }
  31.  
  32. </script>
  33.  
  34. </head>
  35. <body>
  36.  
  37. <input type="text" id="pole" />
  38. <input type="submit" onclick="przetworz()" />
  39.  
  40.  
  41.  
  42.  
  43. </body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement