Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Mostra em um alert() o que vocĂȘ digitou na textarea.
- <html>
- <script type="text/javascript">
- function showElement()
- {
- var getText = document.getElementById("text").value;
- if ( !getText )
- {
- alert("Erro, valor NULO");
- }
- else
- {
- alert("VocĂȘ digitou: " + getText);
- }
- }
- </script>
- <textarea id="text" colls="6" rows="5"></textarea><br>
- <input type="button" value="Clique aqui!" onclick="showElement()" />
- </html>
Advertisement
Add Comment
Please, Sign In to add comment