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

125
Views
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
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!