Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

118
Vistas
Javascript return in the form of a link text of the url of a button

I have a button contained within a sem_menu2.html page which in turn this page is contained within an iframe, how can I create a function that, once the button is clicked, returns me the name of the file contained in an href?

<div class="col-sm">
  <a target="frameapplication" href="/pages/applicazione.html">
    <button class="btn btn-outline-secondary" onclick="loadPage()">
      <i class="fa fa-cc-visa icon-button"></i>
      <h5 class="text-button">Clienti con Modalita' di Pagamento Carta Credito</h5>
    </button>
  </a>
</div>

This function is incorrect because it does not return what I asked for.

function loadPage(){
    var newURL = window.location.pathname;
    window.open(newURL);
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda