The Location Object
Location Object
The location object contains information about the current URL.
The location object is part of the window object and is accessed through the window.location property.
Note: There is no public standard that applies to the location object, but all major browsers support it.
Location Object Properties
| Property |
Description |
| hash |
Returns the anchor portion of a URL |
| host |
Returns the hostname and port of a URL |
| hostname |
Returns the hostname of a URL |
| href |
Returns the entire URL |
| pathname |
Returns the path name of a URL |
| port |
Returns the port number the server uses for a URL |
| protocol |
Returns the protocol of a URL |
| search |
Returns the query portion of a URL |
Location Object Methods
| Method |
Description |
| assign() |
Loads a new document |
| reload() |
Reloads the current document |
| replace() |
Replaces the current document with a new one |
Stylus Studio® 2010 XML Enterprise Suite raises the bar for productivity in XML development tools.
Millions of XML developers and data integration specialists turn to Stylus Studio's comprehensive and intuitive
XML toolset to tackle today's advanced XML data transformation and aggregation challenges.
|
- XML Pipeline Editor, Debugger and Code Generator
- DataDirect XML Converters
- XQuery Mapper, Editor, Debugger, and Profiler
- XSLT Mapper, Editor, Debugger, Designer, and Profiler
- Java and C# for .Net Code Generation
- XML Schema Designer With Documentation Generator
- XML Editor With Full XPath Integration
Download a free trial now
|
|