Mikeyham Posted December 9, 2008 Share Posted December 9, 2008 Just wondering: is there was way to make an HTML link to open the source code of a document?~Thanks! Link to comment Share on other sites More sharing options...
Ingolme Posted December 9, 2008 Share Posted December 9, 2008 This works in Firefox <a href="" type="text/plain">This source code</a> It doesn't work in most other browsers I have, but it's supposed to, according to the W3C.Anyways, you'll need a PHP solution for it. Link to comment Share on other sites More sharing options...
Mikeyham Posted December 9, 2008 Author Share Posted December 9, 2008 It didn't work for me in Firefox 3 : / I suppose I'll get to it when I learn php Link to comment Share on other sites More sharing options...
Anman Posted December 21, 2008 Share Posted December 21, 2008 For Chrome you can do <a href="view-source:http://www.google.com">Google Source Code</a> You replace "http://www.google.com" with your site's FULL url. (Not just index.html) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.