Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
- <head>
- <title></title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <script type="text/javascript">
- function przetworz()
- {
- var imie=document.getElementById("pole").value;
- document.write(imie.toUpperCase()+ "<br />");
- document.write(imie.toLowerCase()+ "<br />");
- for (i=0;i<=imie.length; i++)
- {
- if (i==0)
- {
- document.write(imie.charAt(0).toUpperCase());
- }
- else
- {
- document.write(imie.charAt(i));
- }
- }
- }
- </script>
- </head>
- <body>
- <input type="text" id="pole" />
- <input type="submit" onclick="przetworz()" />
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement