JavaScript Reference/Javascript Objects/location
Содержание
"location" Example
<source lang="javascript">
<html> <body>
Row 1 |
Row 2 |
Row 3 |
<button onclick="myTable.style.fontWeight = "bold";">Bold</button> <button onclick="location.reload();">Reload page</button> </body> </html>
</source>
"location" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |document window | +----------------+--------------------------------------------------------------+
</source>
"location" JavaScript Methods
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | JavaScript |assign reload | | Methods |replace | +----------------+--------------------------------------------------------------+
</source>
"location" JavaScript Properties
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | JavaScript |hash host | | Properties |hostname href | | |pathname port | | |protocol search | +----------------+--------------------------------------------------------------+
</source>
"location" Syntax and Note
<source lang="javascript">
Note: Basic information about the current site being visited.
Syntax:
objectName.location.memberName
</source>