homepage Welcome to WebmasterWorld Guest from 54.166.148.189
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
About://
link syntax to view-source in the browser window ?
turbo




msg:618116
 4:34 pm on Dec 22, 2002 (gmt 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]

 

bonzibudy




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

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

IE only. Not sure which version

tedster




msg:618118
 5:04 pm on Dec 22, 2002 (gmt 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.

WibbleWobble




msg:618119
 5:29 pm on Dec 22, 2002 (gmt 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?

turbo




msg:618120
 5:39 pm on Dec 22, 2002 (gmt 0)

It doesnt work in Opera (6.05).
/ Turbo

g1smd




msg:618121
 7:26 pm on Dec 22, 2002 (gmt 0)

It works fine in Netscape 4.8 - that was a surprise I'll bet.

chameleon




msg:618122
 8:58 pm on Dec 22, 2002 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved