Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8" />
- <script>
- document.addEventListener('DOMContentLoaded', function (e) {
- var textInput = document.body.appendChild(document.createElement('input'));
- textInput.type = 'text';
- textInput.placeholder = 'Введите вашу строку';
- var btn = document.body.appendChild(document.createElement('input'));
- btn.type = 'button';
- btn.value = "Проверить";
- btn.addEventListener('click', function (e) {
- var str = textInput.value;
- // проверки
- });
- });
- </script>
- </head>
- <body>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement