NavigateAndFind Method

DHTML, HTML, & CSS

 
Click to return to the DHTML, HTML & CSS home page    
navigate Method     nextPage Method     DHTML Methods    

NavigateAndFind Method


Opens a Web page, and highlights a specific string.

Syntax

window.external.NavigateAndFind(sLocation, sQuery, sTargetFrame)

Parameters

sLocationRequired. String that specifies the URL of a Web page.
sQueryRequired. String that specifies the text to highlight on the Web page specified by sLocation.
sTargetFrameRequired. String that specifies the name of the target frame to query.

Return Value

No return value.

Remarks

The NavigateAndFind method requires a full qualified path, including a location prefix (http://, c:\, and so on).

The target frame argument might be empty.

This method is not supported in html applicationsInternet Link.

Example

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

Sample Code

<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>
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.

external

See Also

window


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.