Welcome to WebmasterWorld Guest from 54.163.166.22

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)

New User

10+ Year Member

joined:Dec 14, 2002
posts:13
votes: 0


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)

Junior Member

10+ Year Member

joined:May 15, 2002
posts:65
votes: 0


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

IE only. Not sure which version

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

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 0


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)

Full Member

10+ Year Member

joined:Dec 13, 2002
posts:307
votes: 0


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)

New User

10+ Year Member

joined:Dec 14, 2002
posts:13
votes: 0


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

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 0


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

Junior Member

10+ Year Member

joined:July 9, 2002
posts:134
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members