View source code



With Button:  
<form>
<input type="button" value="View Source" onClick= 'window.location = "view-source:" + window.location.href' >
</form>



With Link:   View Source

Place this code between your <HEAD> and </HEAD> tags.
<script language=JavaScript>
function ViewSource() {
window.location = "view-source:" + window.location.href }
</script>

Place this code where you would like your link to appear.
<a href=javascript:ViewSource()>View Source</a>


Free JavaScripts provided
by Winfolinx.com




Back