document.URL
ページのURL (URI) を返します。
構文
document.URL
例文
<html>
<head>
<title>document.URL</title>
<script type="text/javascript"><!--
window.onload = function () {
var n = document.URL;
document.getElementById("result").innerHTML = n;
}
// --></script>
</head>
<body>
<div id="result"></div>
</body>
</html>
関連記事
スポンサーリンク





