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