Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I view --> page-source of an iframe? How can I make iframe contents viewable?

Tags:

html

css

iframe

When I load a page that has an iframe, often (perhaps always) I can't see the content of that iframe using the browser's View --> PageSource menu choice. Two questions:

  1. Why should the iframe's content be unviewable?

  2. How can I change my html or css so that it is viewable?

EDIT: @diEcho and @JohnP answered the second question (thanks, guys!) but the first question remains:

How come the iframe's content is unviewable in the first place?

Thanks!

like image 772
Pete Wilson Avatar asked Apr 18 '11 10:04

Pete Wilson


2 Answers

In Firefox, you can right click inside the iframe and select This Frame -> View Source and you can view the source of the iframe.

And in Chrome, it's View Frame Source

like image 111
JohnP Avatar answered Sep 28 '22 09:09

JohnP


if using firefox then install Web developer addon ..there is option to see page source of specific iframe...

HAPPY TO HELP

like image 41
diEcho Avatar answered Sep 28 '22 10:09

diEcho