是的,自己做的检索,想在显示的时候把结果高亮显示

解决方案 »

  1.   

    tryNavigateAndFind Method  Internet Development Index --------------------------------------------------------------------------------Navigates to the specified URL and selects the specified text.Syntaxexternal.NavigateAndFind(sLocation, sQuery, sTargetFrame)
    ParameterssLocation 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. String that specifies the name of the target frame to query. Return ValueNo return value.ResThis 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).ExampleThis example uses the NavigateAndFind method to search for a word or phrase on another page.HideExample<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>