简体   繁体   English

无法查看网页的 HTML 源代码

[英]Unable to view the HTML source code of a web page

Could you please post the HTML source code of this web page:能否请您发布此网页的 HTML 源代码:

http://www.xuanyinwen.com/test3.html http://www.xuanyinwen.com/test3.html

I just cannot figure out how to retrieve it..我只是不知道如何检索它..

You can use wget or switch off JavaScript.您可以使用wget或关闭 JavaScript。

PS: The magic word is "wen" . PS:神奇的词是"wen"

Just use "View source" option from tool menu in browser.只需使用浏览器工具菜单中的“查看源代码”选项即可。


<head>
<script language="JavaScript">
var password;
var pass1="wen";
password = prompt('Whats The Magic Word?',' ');
if (password === pass1)
    alert('That Is Correct!');
else
    window.location="SITE-LINK";
</script>
</head>
<body onLoad="ImageBook()">
TEST
</body>
</html>

"Right-Click + Save Link/Target As..." can be helpful sometimes :) There are several methods of doing this. “右键单击 + 将链接/目标另存为...”有时会很有帮助:) 有几种方法可以做到这一点。

<head>
    <script language="JavaScript"> 
    var password;
    var pass1="wen";
    password = prompt('Whats The Magic Word?',' ');
    if (password === pass1)
        alert('That Is Correct!');
    else
        window.location="SITE-LINK";
    </script>

    </head>

    <body onLoad="ImageBook()">
    TEST


    </body>
    </html>

Either disable JavaScript on your browser, or use some kind of command line tool (eg curl).要么禁用浏览器上的 JavaScript,要么使用某种命令行工具(例如 curl)。

<head>
<script language="JavaScript">
var password;
var pass1="wen";
password = prompt('Whats The Magic Word?',' ');
if (password === pass1)
    alert('That Is Correct!');
else
    window.location="SITE-LINK";
</script>
</head>           
<body onLoad="ImageBook()">
TEST
</body>
</html>

在 firefox 中使用 firebug 并选择脚本。


<head>
<script language="JavaScript">
var password;
var pass1="wen";
password = prompt('Whats The Magic Word?',' ');
if (password === pass1)
alert('That Is Correct!');
else
window.location="SITE-LINK";
</script>


</head>


<body onLoad="ImageBook()">
TEST

</body>
</html>

在 Windows 10 中输入键盘 Ctrl + U

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM