How to view a page's source when a javascript modal popup loads first?

10,753

Solution 1

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

view-source:http://www.google.co.uk

This works in Firefox and Chrome for me.

Solution 2

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:
10,753

Related videos on Youtube

Jimmy Lyke
Author by

Jimmy Lyke

Updated on September 17, 2022

Comments

  • Jimmy Lyke
    Jimmy Lyke almost 2 years

    Scenario:

    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?

    • Admin
      Admin almost 15 years
      Can you post a screenshot of the popup...
    • Admin
      Admin almost 15 years
      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?
    • Admin
      Admin almost 15 years
      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) tinypic.com for screenshots
  • Jimmy Lyke
    Jimmy Lyke almost 15 years
    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.
  • Jimmy Lyke
    Jimmy Lyke almost 15 years
    this is probably due to my new realization that i've posted as an edit to the question. Hm..
  • Axxmasterr
    Axxmasterr almost 15 years
    You actually have to explictly run JSView from the tools menu at the top of FF