Welcome to WebmasterWorld Guest from 23.20.37.222

Forum Moderators: incrediBILL

Message Too Old, No Replies

About://

link syntax to view-source in the browser window ?

     
4:34 pm on Dec 22, 2002 (gmt 0)

10+ Year Member



I saw a page on the net that described how to use the about: in the address field of Internet Explorer to display the source code of a web page.

I also saw something about "view-source:", but that doesnt work.

What I want is to be able to have an URL like this: <a href="showthesource:http://www.example.com">View the source of the page www.example.com</a>.

Thanks for helping me, I'm beginning to loose hope to find how to do this again.

Kind regards,
Turbo

[edited by: korkus2000 at 5:06 pm (utc) on Dec. 22, 2002]
[edit reason] no specifics please [/edit]

4:59 pm on Dec 22, 2002 (gmt 0)

10+ Year Member



view-source:http://www.google.com

IE only. Not sure which version

5:04 pm on Dec 22, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



There's a difference between what IE supports in its location box and what will be accepted cross browser as valid HTML. AFAIK there is no HTML to do this.

To accomplish your purpose, I believe you would need server-side scripting. The link would actually be a form input and then the server would use CGI to re-write the page's code so it displays as code in any browser window, rather than being rendered.

5:29 pm on Dec 22, 2002 (gmt 0)

10+ Year Member



Its not IE only. Mozilla supports the same command (view-source:http://location), as does Phoenix, though thats to be expected, being a Moz offshoot. Anyone want to comment on NS and Opera support?
5:39 pm on Dec 22, 2002 (gmt 0)

10+ Year Member



It doesnt work in Opera (6.05).
/ Turbo
7:26 pm on Dec 22, 2002 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



It works fine in Netscape 4.8 - that was a surprise I'll bet.
8:58 pm on Dec 22, 2002 (gmt 0)

10+ Year Member



Doesn't work in Opera 7 Beta 2 either...
 

Featured Threads

Hot Threads This Week

Hot Threads This Month