Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

111
Views
¿Cómo hago para que la búsqueda del sitio web de la empresa aparezca en mi navegador como un enlace en el que se puede hacer clic?

Estoy obteniendo datos de la empresa, como el logotipo, el título de la empresa, la descripción y el sitio web. Cuando aparece el sitio web, es una cadena de texto normal. Me gustaría que apareciera en el navegador como un enlace en el que se puede hacer clic.

 function getCompanyProfile(symbol) { const url = `https://.appspot.com/api/v3/company/profile/${symbol}`; fetch(url) .then((response) => response.json()) .then((data) => { const profile = data.profile; companyTitle.textContent = profile.companyName; companyWebsite.textContent = profile.website; companyDescription.textContent = profile.description; price.textContent = "Stock Price: $" + profile.price; let profileChangesPercent = Number(profile.changesPercentage); if (profileChangesPercent >= 0) { changesPercentage.classList.add("green"); } else if (profileChangesPercent < 0) { changesPercentage.classList.add("red"); } changesPercentage.textContent = profileChangesPercent.toFixed(2) + "%"; // set logo let img = document.createElement("img"); img.src = profile.image; companyLogo.appendChild(img); console.log(data); }) .catch((err) => { console.warn("Something went wrong.", err.message); }); }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede cambiar companyWebsite.textContent = profile.website; to companyWebsite.innerHTML = "<a href='" + profile.website + "'>Hyperlink Text</a>"

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!