Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
177
rated 0 times [  180] [ 3]  / answers: 1 / hits: 32283  / 14 Years ago, wed, january 19, 2011, 12:00:00

Is there anyway to get the source code of the page that an iframe loaded? I do not wish to CHANGE any of the code, I just want to READ it. I also need to be able to get this using javascript/html.


More From » html

 Answers
58
document.getElementById('iframeID').contentWindow.document.body.innerHTML


Works in Firefox, Chrome, Opera, IE9 beta


[#94154] Monday, January 17, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
harleyterryp

Total Points: 290
Total Questions: 92
Total Answers: 95

Location: Montenegro
Member since Sun, May 7, 2023
1 Year ago
;