Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head><title>Sou foda \me</title>
- <script type='text/javascript'>
- function soma()
- {
- var n1 = document.getElementById('num1').value;
- var n2 = document.getElementById('num2').value;
- alert(n1+n2);
- }
- </script></head>
- <body>
- <input type='button' value='Clique Aqui' onclick='soma()'>
- <input type='text' id='num1' value='0'>
- <input type='text' id='num2' value='0'>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement