0

Is it possible to get content from an iFrame?

<p class="title">Here I want to insert .moviename's content which is in iframe</p>

<script>$(".title").html($("#myIframe").contents().find(".moviename"));</script>

1 Answers1

1

due to the same origin policy I think you can use web page parser or html parser scripts to fetch specific data from other domain's web page.

here is examples of web page parser scripts :

PHP Simple HTML DOM Parser

Parse Web Pages with PHP Simple HTML DOM Parser

Html Parser

Farshad
  • 1,465
  • 1
  • 9
  • 12