DHTML Methods
Opens a Web page and highlights a specific string.
window.external.NavigateAndFind (
sLocation, sQuery, sTargetFrame )
sLocation |
Required. URL of a Web page. |
sQuery |
Required. Text to highlight on the Web page specified by sLocation. |
sTargetFrame |
Required. Name of the target frame to query. |
No return value.
The NavigateAndFind method requires a full qualified path, including a location prefix ( http://, c:\, etc ).
The target frame argument may be empty.
The example demonstrates how to use the NavigateAndFind method to search for a word or phrase on another page.
Sample Code
<script language="JavaScript">
function navFind ( theFile ) {
var sURL=theFile;
window.external.NavigateAndFind ( sURL,
theSearch.options [ theSearch.selectedIndex ] .text, "" );
}
function Init ( ) {
theSearch.selectedIndex=-1;
}
</script>
</head>
<body onload="Init ( )">
<label for=theSearch>Search for:</label>
<select id="theSearch" onchange="navFind (
'found.html' )">
<option>persnickety
<option>Seattle rain
<option>comedic sycophants
<option>rich liquid sunshine</select>
</body>
Show me
external
window