Вопрос

I am using an <iframe> in my HTML document.

When I view the source code in the browser via the View Source option I cannot see the elements inside the <iframe>. However when I inspect the source code in Firebug I can see all the elements in iframe.

Is there are way to echo the entire HTML structure like Firebug shows it to the console via JavaScript, e.g. using jQuery?

Это было полезно?

Решение

You can use console.dirxml(window.frames[i].document) with i being the index of your <iframe>.

Sebastian

Другие советы

Right click into the <iframe> and choose This Frame > View Frame Source. (At least that's how you can do it in Firefox.)

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top