查看源按钮 - 不再工作

时间:2016-11-09 00:38:39

标签: view-source

为什么原始方法不再适用于此页面(在Chrome中)?

我在我的网站上使用相同的功能,但它也停止了工作。

https://css-tricks.com/examples/ViewSourceButton/#

以下是该行:

 <a class="button" onClick='window.location="view-source:" + window.location.href'>Primitive View Source</a>

0 个答案:

没有答案