dimanche 28 février 2021

How Do I Make It Download A File When You Click The Button [duplicate]

<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Exite Premium</title>
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css'><link rel="stylesheet" href="style3.css">

</head>
<body>
<!-- partial:index.partial.html -->
<div class='button'>
<h1>Exite Premium</h1>
<a>
 <i class='ion-social-codepen'></i>
 <span>Click Donwload To Get Premium</span>
</a>
<input id='button' type='checkbox'>
<label for='button'>
 <div class='button_inner q'>
   <i class='l ion-log-in'></i>
   <span download href="serious-rick.jpg" class='t'>Download</span>
   <span>
     <i class='tick ion-checkmark-round'></i>
     <input type="button" href="serious-rick.jpg" download>
   </span>
   <div class='b_l_quad'>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
     <div class='button_spots'></div>
   </div>
 </div>
</label>
</div>
<!-- partial -->

</body>
</html>

Please Could I Get A Solution To This In The Language HTML or JavaScript Since I Would Like It When You Click The Button it Downloads A File

All That Happens is An Animation And I Have No Way To Make it download i file when you click the download butt, since it isn't a conventional button me And A Few Other People Have Tried Fixing But We Had No Luck I Would Appreciate Some Help On This




Aucun commentaire:

Enregistrer un commentaire