Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


You go to a page. Before loading, a javascript modal popup loads. Firebug has yet to pick up on the source. However, this code is obviously living in your browser. How can you view the source, at this time?

EDIT: It appears that this popup is not javascript driven. I have disabled javascript and it still loads. However, it definitely looks like javascript... How would this occur without javscript?

share|improve this question
Can you post a screenshot of the popup... – pelms Jul 30 '09 at 15:22
i'm not suer where icould upload a screenshot. it appears that when a file is being authorized by .htaccess, you can not load the page source beforehand. i didn't know this. does this sound like the answer? – Chris Jul 30 '09 at 16:19
If it's a .htaccess login box then the browser isn't sent anything until you log in - do you see a login prompt? You can use (for example) for screenshots – pelms Jul 30 '09 at 17:20
up vote 2 down vote accepted

Try prepending 'view-source:' to the URL;


This works in Firefox and Chrome for me.

share|improve this answer
check this out : the popup that comes up has no editable address bar and greyed out "save page as" or "show source code" options. how do you do then ? – v.oddou Jun 25 '14 at 3:10

If you use firefox, you can select text/item/etc at the popup and click in context menu on "show source code for selection".

or better

Firefox Addon - Web Developer 1.1.8

share|improve this answer

I would use the firefox plugin called JSView. This is how I have been getting around these types of roadblocks.

JSView is available here

share|improve this answer
I've just downloaded this plugin. I've obviously never used it, but it doesn't appear that I can use it (on right click) on this popup. – Chris Jul 30 '09 at 14:55
this is probably due to my new realization that i've posted as an edit to the question. Hm.. – Chris Jul 30 '09 at 14:57
You actually have to explictly run JSView from the tools menu at the top of FF – Axxmasterr Jul 30 '09 at 15:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .