How to get iframe src page title and then set main page title
If you want to do it using jQuery:
var title = $("#frame_id").contents().find("title").html(); $(document).find("title").html(title);
You can do it only when pages are on the same domain, otherwise it's useless.
2.1m questions
2.1m answers
60 comments
57.0k users