注意:Windows XP SP2 の場合 view-source が使えなくなりました。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja-JP">
<head>
<meta http-equiv="content-type" content="text/html; charset=shift_jis">
<meta http-equiv="content-script-type" content="text/javascript">
<meta http-equiv="content-style-type" content="text/css">
<title>ソースを表示する</title>
<script type="text/javascript">
<!--
function source(){
location='view-source:'+window.location;
}
// -->
</script>
</head>
<body>
<h1>ソースを表示する</h1>
<input type="button" value="ソースの表示"
onClick="source()" onkeypress="source()" accesskey="Q" tabindex="2">
</body>
</html>
| HOME | 相互リンク集 | 初心者に分かりやすい JavaScript サンプル |
Copyright(C)2008 bisoy , All rights reserved.
Last Update: 6 / 25 / 2008 17:21:51 JST