Domain name's

document.addEventListener("DOMContentLoaded", function() { try { const urlParams = new URLSearchParams(window.location.search); let domainName = urlParams.get('domain'); console.log("URL Parameter 'domain':", domainName); if (!domainName) { const referrer = document.referrer; console.log("Referrer:", referrer); if (referrer) { const referrerURL = new URL(referrer); domainName = referrerURL.hostname; console.log("Extracted Domain from Referrer:", domainName); } } if (domainName) { const domainInfoDiv = document.createElement('div'); domainInfoDiv.id = 'domain-info'; domainInfoDiv.style.padding = '10px'; domainInfoDiv.style.border = '1px solid #ccc'; domainInfoDiv.style.backgroundColor = '#f9f9f9'; domainInfoDiv.style.margin = '10px 0'; domainInfoDiv.innerHTML = `

You are interested in buying: ${domainName}

`; // Insert into the placeholder element const placeholder = document.getElementById('domain-info-placeholder'); if (placeholder) { placeholder.appendChild(domainInfoDiv); } else { console.log("Placeholder element not found"); } console.log("Domain info displayed:", domainInfoDiv.innerHTML); } else { console.log("No referrer or domain parameter found"); } } catch (error) { console.error("Error parsing referrer URL:", error); } });

Thanks for your interest in one of our domains, please submit form below to be contacted.

Text

~

Thanks for your interest in dospotrillos!

Lorem ipsum dolor et amet amet nullam. Sed aliquam consequat.