Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <script>
- function test(){
- if (c1.checked){
- h.innerText="Здесь уже есть текст";
- t.value = "Кнопка нажата";
- }
- }
- </script>
- </head>
- <body>
- <input type = "checkbox" id = "c1">
- <input type = "button" id = "b" onclick="test()" value = "Нажмите меня">
- <h1 id = "h">Здесь будет текст</h1>
- <input type = "label" value = "Здесь тоже будет текст" id = "t"></input>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement