Welcome to WebmasterWorld Guest from 188.8.131.52 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor 2014
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.
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)
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...