EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

NavigateAndFind Method

Navigates to the specified URL and selects the specified text.

Navigates to the specified URL and selects the specified text.

Syntax

external.NavigateAndFind(sLocation, sQuery, sTargetFrame)

Parameters

sLocation Required. A String that specifies the URL of a Web page.
sQuery Required. A String that specifies the text to highlight on the Web page specified by sLocation.
sTargetFrame Required. String that specifies the name of the target frame to query.

Return Value

No return value.

Remarks

This method requires a full qualified path, including a location prefix, for example, http://, c:\, and so on.

The target frame argument might be empty.

This method is not supported in Introduction to HTML Applications (HTAs).

This method requires a user-initiated action to open a pop-up window, such as clicking on a link, or tabbing to a link and pressing enter. The Pop-up Blocker feature in Microsoft Internet Explorer 6 blocks windows that open without being initiated by the user.

Example

This example uses the NavigateAndFind method to search for a word or phrase on another page.


<HEAD>
<SCRIPT>
function fnNAF(){
   window.external.NavigateAndFind(
       "http://www.domain.ext/path/file.htm",
       oSearchText.options[oSearchText.selectedIndex].text,"");
}
</SCRIPT>
</HEAD>
<BODY>
<SELECT id=oSearchText onchange="fnNAF()">
<OPTION>Persnickety
<OPTION>Seattle rain
<OPTION;> ...
</SELECT>
</BODY>

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/NavigateAndFind.htm

Standards Information

There is no public standard that applies to this method.

Applies To

external

See Also

Aggiunte alla community

Mostra:
© 2014 Microsoft