Navigate2 Method

Navigates the browser to a location that might not be expressed as a URL, such as a pointer to an item identifier list (PIDL) for an entity in the Microsoft Windows Shell namespace.

Syntax

object.Navigate2( _
    URL As Variant, _
    [Flags As Variant,] _
    [TargetFrameName As Variant,] _
    [PostData As Variant,] _
    [Headers As Variant])

Parameters

URL
Required. A variable or expression that evaluates to the URL of the resource to display, the full path to the file location, or a PIDL that represents a folder in the Shell namespace.
Flags
Optional. A constant or value that specifies a combination of the values defined by the BrowserNavConstants enumeration.
TargetFrameName
Optional. Case-sensitive string expression that evaluates to the name of the frame in which to display the resource. The possible values for this parameter are.

_blank
Load the link into a new unnamed window.
_parent
Load the link into the immediate parent of the document the link is in.
_self
Load the link into the same window the link was clicked in.
_top
Load the link into the full body of the current window.
WindowName
A named HTML frame. If no frame or window exists that matches the specified target name, a new window is opened for the specified link.
PostData
Optional. Data that is sent to the server as part of a HTTP POST transaction. A POST transaction typically is used to send data collected by an HTML form. If this parameter does not specify any POST data, this method issues an HTTP GET transaction. This parameter is ignored if URL is not an HTTP URL.
Headers
Optional. A String that contains additional HTTP headers to send to the server. These headers are added to the default Windows Internet Explorer headers. For example, headers can specify the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if the URL is not an HTTP URL.

Remarks

See Navigate for additional usage notes.

This method extends the Navigate method to allow for Shell integration; however, this method does not make Navigate obsolete. The original method can still be used for URL navigations.

Applies To

InternetExplorer, WebBrowser

See Also

Tags :


Community Content

yecril
Supported locators

In addition to ordinary URLs, the method supports file system paths like "\" and some special folder numbers like 0. Special namespaces like "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}" and fancy locators like "file:" are acceptable only if Windows Explorer is the host, otherwise an exception is thrown. The PIDL thing must be an array of bytes, there is no way to create one from script.

Tags :

Page view tracker