Example Code:
<script language="javascript">
<!-- Begin
{}
// End -->
</script>
<form>
<input type="button" value="View Source"
onClick= 'window.location = "view-source:" + window.location.href' >
</form>
----------------------------------------------------------
simple form use java read hemlcode
<form name="htmlcode"> <input type="button" value="View Source"
onClick= 'window.location = "view-source:" + this.form.T1.value ' >
<input type="text" name="T1" size="60" value="http://">
</form>
-----------------------------------------------------
<form>
<input type="button" value="View html source"
onClick= 'window.location = "view-source:" +"http://-----.com"' >
</form>
輸入href後就可讀取由瀏覽器確定跑過結果的code: htmlencode
好處:確實由jave跑過
且使用瀏覽者的IP與資源讀取 |