This script will show you the HTML source code of a page by the click of a button.
(Does not work in IE)
<The Form >
<INPUT TYPE="button" value="Try it! Click Here" onClick="getcode()">
var thecode= "view-source:" + window.location;
Please let me know if this script was helpful to you.