日期:2014-05-18  浏览次数:20599 次

有没有人用过这个查看代码?
function   viewSource()
{
window.location   =   "view-source: "   +   this.location.href;
}

<form>
<input   type= "button "   value= "查看原代码 "   onclick= "viewSource(); "   />
</form>

我这里显示找不到网页

------解决方案--------------------
在firefox中可用!