Advertisement
MarceloSousa

Duvida

Sep 23rd, 2014
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.55 KB | None | 0 0
  1. <!DOCTYPE htm>
  2. <html>
  3.     <meta charset = utf-8>
  4.     <head>
  5.         <script>
  6.             function mostraFrase(nome,idade){
  7.                 var frase = nome + ", você tem " + idade + " anos!"
  8.                 document.getElementById("saida").innerHTML=frase;
  9.             }
  10.         </script>
  11.     </head>
  12.     <body>
  13.     Nome: <input id = "nome" type = "text">
  14.     Idade: <input id = "idade" type="number">
  15.     <input type = "button" value = "Enviar" onclick = "mostraFrase(...,...)">
  16.     Saída: <b id= "saida"></b>
  17.        
  18.     </body>
  19. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement