新手求教!!请教如何用javascript实现查看网页源码??
请教如何用javascript实现查看网页源码??
请教如何用javascript实现查看网页源码??
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查看源代码</title>
</head>
<body>
<input TYPE="button" NAME="view" VALUE="查看源代码" OnClick="window.location='view-source:' +window.location.href" >
</body>
</html>