0

I'm currently trying to search for an html element inside an embedded html document itself, this embedded html is generated by an tag and the problem arises when trying to find elements inside that specific html document using javascript because when using methods such as getElementbyId() element from embedded html document does not exist, until I explicitly inspect such embedded html document, the problem looks like this

html code itself:

<html>
   <head>...</head>
    <body>
        <iframe src="https://checkoutshopper-live.adyen.com/checkoutshopper/assets/html/pub.v2.4115647804643321.aHR0cHM6Ly93d3cuaW5udmljdHVzLmNvbQ.7XfHV22l55LCULxK8U62y86makLEcbal7smFukBz44E/securedFields.2.0.3.html" class="js-iframe" title="Input field for secured card data" frameborder="0" scrolling="no" allowtransparency="true" style="border: none; height:100%; width:100%;"><p>Your browser does not support iframes.</p></iframe>
    
</body>
</html>

the iframe (as mentioned above) creates an embedded html document, and from there I want to search and access to html elements itself, how to acomplish such goal?

thanks!

  • 1
    [Duplicate](https://www.google.com/search?q=site%3Astackoverflow.com+js+find+element+in+iframe) of [Get element from within an iFrame](https://stackoverflow.com/questions/1088544/get-element-from-within-an-iframe). – Sebastian Simon Aug 24 '20 at 02:29

0 Answers0