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

236
Views
How to get href link from iframe of google map?

I am trying to get href link from google map as shown in screenshot. The link is inside iframe. It gives null/error value from this below code. Google map is embed using jquery.

I tried: `

    var a_href = $(this).find('div .google-maps-link a').attr('href');

    var hrefs = $('#mapDiv .google-maps-link').find('a').attr('href');

    var href = $('.google-maps-link').find('a').attr('href');

    var values = $("#mapDiv .google-maps-link a").prop('href');

    var value = $("#mapDiv .gm-style .place-card .bottom-actions .google-maps-link 
    a").attr('href');

`

enter image description here

screenshot

Help me.

Update:

 <div class="col-md-6" id="map-location">
       <div id="dvmap"></div>
  </div>


   $(document).ready(function () {
     $.ajax({
        url: "@Url.Content("~/GMap/GetGMapDataInfo")",
        method: "GET",
        success: function (result) {
            var json = JSON.parse(result.data);
            $("#dvmap").html('<iframe name="frame1" scrolling="no" marginheight="0" marginwidth="0" id="gmap_canvas"  src="' + json.MapLocation + '" width="520" height="400" frameborder="0"></iframe>');
        },
        error: function () {
        }
     });
});

Google imbedded map

I want to share this location (2880 Broadway)

In View large map which is in anchor tag. I need This href link.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

For security reasons, you can not access the url of an iframe served on another domain.

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!