0

Вот есть код кнопки на html

<!doctype html>
<html> 
 <head></head> 
 <body> 
  <div class="Lite"> 
   <center> 
    <h1>Official LiteBot</h1> 
   </center>
   <center>
   <button type="button" name="run_script">Добавить бота</button> 
   </center>
  </div> 
 </body>
</html>

Вот стилизация на css

button[name="run_script"] { 
    border: none;
    border-radius: 7px;
    padding: 10px 25px;
    background: #ff9900;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    color: white;
  }
  button[name="run_script"]:hover { 
    background: #ff6600;
  }

И я хочу сделать так, чтобы после того как я нажимал на эту кнопку: Меня перекидывало на определённый сайт Помогите пожалуйста!

1 ответ 1

2
<!doctype html>
<html> 
 <head></head> 
 <body> 
  <div class="Lite"> 
   <center> 
    <h1>Official LiteBot</h1> 
   </center>
   <center>
      <a href="https://google.com" class="button">google</a>
   </center>
  </div> 
 </body>
</html>

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.