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与资源读取
|