@willa_will Вы можете изменить visibility на 'hidden' чтобы сделать кнопку невидимой в Javascript, код:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<!DOCTYPE html> <html lang="en"> <head> <title>Как сделать кнопку невидимой в Javascript?</title> <meta charset="UTF-8"/> </head> <body> <button>Кнопка</button> <script> const button = document.querySelector('button'); // Сделать кнопку невидимой button.style.visibility = 'hidden'; </script> </body> </html> |