0

I have an <iframe> like this-

<iframe id="iframe" src="https://www.producthunt.com/" width="800" height="600" scrolling="no" frameborder="0"></iframe>

I want to get the wrapping names of "div" in that product hunt website. Let's say product hunt website have a div name "products", How to I get that? For example, If a user click on a tag , I want to know that user clicked a tag or

tag etc

I know it's a basic question, but please help me.

Harsha
  • 1
  • 1
  • 3
  • Are you trying to change the HTML inside the ` – Andrew Jan 31 '17 at 08:15
  • @Andrew yeah kind of. But I need that wrapping names. For example, If a user click on a

    tag , I want to know that user clicked a

    tag or

    tag etc

    – Harsha Jan 31 '17 at 08:18
  • read this:http://stackoverflow.com/questions/6170925/get-dom-content-of-cross-domain-iframe – Suchit kumar Jan 31 '17 at 08:28
  • 2
    Possible duplicate of [How can I access the DOM elements within an iFrame](http://stackoverflow.com/questions/24603580/how-can-i-access-the-dom-elements-within-an-iframe) – Hidayt Rahman Jan 31 '17 at 08:46

0 Answers0