Code

  <html lang="en"> <head> <meta charset="UTF-8"></meta> <meta content="width=device-width, initial-scale=1.0" name="viewport"></meta> <title>whiz fayisal code</title> <style> .button { display: block; width: 200px; height: 60px; background-color: #007bff; color: #ffffff; text-align: center; line-height: 60px; font-size: 16px; font-weight: bold; text-decoration: none; border-radius: 10px; margin-bottom: 20px; } .refresh-button { display: block; width: 200px; height: 40px; background-color: #28a745; color: #ffffff; text-align: center; line-height: 40px; font-size: 14px; font-weight: bold; text-decoration: none; border-radius: 10px; } </style> </head> <body>




<a class="button" href="" id="uniqueButton">Get Link</a>




<a class="refresh-button" href="#" id="refreshButton">Refresh Post</a> <script> function generateUniqueId() { return 'button_' + Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); } document.addEventListener('DOMContentLoaded', function() { var uniqueButton = document.getElementById('uniqueButton'); uniqueButton.id = generateUniqueId(); }); document.getElementById('refreshButton').addEventListener('click', function() { location.reload(true); }); </script> </body> </html>


একটি মন্তব্য পোস্ট করুন

নবীনতর পূর্বতন