Navigates to the specified URL and selects the specified text.
dhtml语法
external.NavigateAndFind(sLocation, sQuery, sTargetFrame)
Parameters
sLocation |
Required.
String that specifies the URL of a Web page. |
sQuery |
Required.
String that specifies the text to highlight on the Web page specified by sLocation
. |
sTargetFrame |
Required.
Stringthat 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 (http://, c:\, and so on).
The target frame argument might be empty.
This method is not supported in introduction to html applications (htas).
DHTML代码范例
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>
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.
是否符合公共标准
There is no public standard that applies to this method.
Applies To
更多语法参考
window