MSHTML Classes: COmLocation

An instance of the COmLocation class is created by reading the location property of a window object.

Identifiers

coclass: HTMLLocation {163BB1E1-6E00-11CF-837A-48DC04C10000}

Scripting

The table below lists the interface members that the COmLocation class exposes as properties through its string table. Properties that Microsoft does not list in the HTML and DHTML Reference are highlighted yellow.

Property Interface Member
assign IHTMLLocation assign
hash IHTMLLocation get_hash
put_hash
host IHTMLLocation get_host
put_host
hostname IHTMLLocation get_hostname
put_hostname
href IHTMLLocation get_href
put_href
pathname IHTMLLocation get_pathname
put_pathname
port IHTMLLocation get_port
put_port
protocol IHTMLLocation get_protocol
put_protocol
reload IHTMLLocation reload
replace IHTMLLocation replace
search IHTMLLocation get_search
put_search
toString IHTMLLocation toString