Share HTML+CSS+JavaScript Get Promo Codes Show Coupon Codes
HTML + CSS + JavaScript to share coupons in English, with beautiful buttons and effects when users click on them, with orange-red color, broken border, beautiful corner border, when clicking on the button, the coupon will jump up and display on all devices from tablets, phones, PCs on modern browsers.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Coupon Offer</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 30px;
background-color: #f9f9f9;
}
.coupon-container {
background-color: #fff;
border: 2px dashed #ff6b6b;
padding: 20px;
border-radius: 10px;
max-width: 400px;
margin: 0 auto;
text-align: center;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.coupon-container strong {
color: #333;
}
.coupon-button {
display: inline-block;
margin-top: 15px;
background-color: #ff6b6b;
color: white;
padding: 12px 24px;
border: none;
border-radius: 8px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s;
text-decoration: none;
}
.coupon-button:hover {
background-color: #ff4c4c;
transform: scale(1.05);
}
.discount-text {
margin-top: 10px;
color: #e60000;
font-weight: bold;
}
</style>
</head>
<body>
<div class="coupon-container">
<p><strong>Click the button below to get the coupon code and sign up now:</strong></p>
<button class="coupon-button" onclick="getCoupon()">GET COUPON</button>
<p class="discount-text">60% off your first bill</p>
</div>
<script>
function getCoupon() {
const coupon = 'DEALWEIGHT.COM';
prompt('Copy and use the coupon below at checkout:', coupon);
window.open('https://dealweight.com/', '_blank');
}
</script>
</body>
</html>


