what is URL command that displays source instead of page?

Discussion in 'Javascript' started by David W. Deley, Jun 29, 2004.

  1. There's some command I forgot that you can type into the
    address field of a web browser that will cause it to
    display the source code for that page instead of
    the page itself. Can anyone tell me what it is?
    It's something like:

    viewsource:http://mysite.com
    or
    view:http://mysite.com
    or
    source:http://mysite.com

    except I don't quite have it correct.
     
    David W. Deley, Jun 29, 2004
    #1
    1. Advertising

  2. David W. Deley wrote:

    > There's some command I forgot that you can type into the
    > address field of a web browser that will cause it to
    > display the source code for that page instead of
    > the page itself. Can anyone tell me what it is?
    > It's something like:
    >
    > viewsource:http://mysite.com


    Try
    view-source:http://www.example.com/
    but there is no standard as far as I know that browsers need to support
    view-source as a pseudo protocol.
    And of course most browsers have a menu item to view the source
    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Jun 29, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sara
    Replies:
    0
    Views:
    685
  2. Chumley Walrus
    Replies:
    1
    Views:
    12,217
    =?Utf-8?B?QnJpYW4gQnJvd24=?=
    Dec 16, 2004
  3. Mark Adams
    Replies:
    0
    Views:
    372
    Mark Adams
    Nov 13, 2005
  4. Quadibloc
    Replies:
    12
    Views:
    1,064
    Quadibloc
    Feb 17, 2008
  5. Quadibloc
    Replies:
    15
    Views:
    667
    Quadibloc
    Feb 16, 2008
Loading...

Share This Page