This Whiz Fayisal Code creates a webpage with two buttons. One button opens a link with a special code attached, and the other button refreshes the page. The link's code changes every time you visit the page. The webpage looks nice because of the styling.
CODE:-
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <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>
ReplyDeletereturn '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);
});