How can I access iframe document content means whole document content (from <!DOCTYPE> declaration to </html> all?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the parent page and the iframe are on the same domain you could access elements like this:
If the iframe is on a different domain than the parent page then you cannot access its contents due to the same origin policy restrictions.