You are here: Reference > JavaScript > client-side > browser > methods > NavigateAndFind (external)

NavigateAndFind method (external)

Browser support:
Loads the document at the specified URL into the current window and selects the specified text.

Syntax:

object.NavigateAndFind (URL, textToFind, findInFrame);
You can find the related objects in the Supported by objects section below.

Parameters:

URL
Required. String that specifies the location of the document to load. Use a fully qualified path, including the protocol.
textToFind
Required. String that specifies the text to highlight in the loaded document.
findInFrame
Required. String that specifies the name of the frame to highlight in. Use an empty string if you want to highlight in the entire document.

Return value:

This method has no return value.

Example HTML code 1:

This example illustrates the use of the NavigateAndFind method:
<head>
    <script type="text/javascript">
        function LoadURL () {        // Internet Explorer only
            if (window.external) {
                var url = "http://help.dottoro.com";
                window.external.NavigateAndFind (url, "dottoro" ,"");
            }
        }
    </script>
</head>
<body>
    <button onclick="LoadURL ();">Load a new document!</button>
</body>
Did you find this example helpful? yes no

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content