window.name

書式

window.name

説明

ウィンドウ名を返します。サブウィンドウの場合はopen()の二番目のパラメータで指定された名前になります。

サンプルコード [実行]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
</head>
<body>
<script type="text/javascript"><!--
document.write(window.name);
// --></script>
</body>
</html>