Compartir a través de


IHTMLLocation interface

This interface contains information about the current URL.

Members

The IHTMLLocation interface inherits from the IDispatch interface. IHTMLLocation also has these types of members:

  • Methods
  • Properties

Methods

The IHTMLLocation interface has these methods.

Method Description
assign

Loads a new HTML document.

reload

Reloads the current document.

replace

Replaces the current document by loading another document at the specified URL.

 

Properties

The IHTMLLocation interface has these properties.

Property Description

hash

Sets or retrieves the subsection of the IHTMLLinkElement4::href property that follows the number sign (#).

host

Sets or retrieves the IHTMLLocation::hostname and IHTMLLocation::port number of the location or URL.

hostname

Sets or retrieves the host name part of the location or URL.

href

Sets or retrieves the entire URL as a string.

pathname

Sets or retrieves the file name or path specified by the object.

port

Sets or retrieves the port number associated with a URL.

protocol

Sets or retrieves the protocol portion of a URL.

search

Sets or retrieves the substring of the IHTMLLocation::href property that follows the question mark.

 

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch