Reflection Desktop VBA Guide
Attachmate.Reflection.Objects Library / Attachmate.Reflection.Objects.Web.Msie Library / WebControl Object / Navigate2 Method
Determines if the new page is in a new window.
Example
In This Topic
    Navigate2 Method
    In This Topic
    Navigates to the URL.
    Syntax
    expression.Navigate2( _
       ByVal Url As String, _
       ByVal newWindow As Boolean _
    ) 
    where expression is a variable that represents a WebControl Object

    Parameters

    Url
    newWindow
    Determines if the new page is in a new window.
    Example
    This example changes the URL of the current Web session and opens another Web session with a different URL on a new tab. To run this sample, create and open a Web session and run this code in the session code module.
    'This example navigates to a Web page and then opens another Web session on a new tab.
    Sub navigateToWeblinks()
     
        'Change the URL for this Web page to go to the Reflection Documentation page
        ThisWebControl.Navigate1 "https://www.microfocus.com/documentation/reflection-desktop/"
        
        'open the Reflection videos page in a new tab
        ThisWebControl.Navigate2 "https://www.microfocus.com/documentation/reflection-desktop/latest/videos/user-intro.html", True
       
    End Sub
    See Also