// Create a new QR code image element
const img = document.createElement('img');
img.src = 'https://chart.googleapis.com/chart?chs=256x256&cht=qr&chl=' + encodeURIComponent(url);
img.alt = 'QR Code for ' + url;
// Append the image to the div
qrCodeElement.appendChild(img);
}
</script
</body
</html