Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: alt.computer,comp.lang.javascript,sci.electronics.design Subject: Re: How get windows FIND() to work? Date: Tue, 4 Aug 2020 19:42:12 +0200 Lines: 50 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net dmnpGVw94XdH/7+yx6W6dwVlZeH7g37MOBSfpWE7xwMECDQAmx Cancel-Lock: sha1:76m+DjQhDAq4Y6H2DMaf8+aP9bg= In-Reply-To: Xref: csiph.com alt.computer:11879 comp.lang.javascript:38650 sci.electronics.design:597167 Robert Baer: > Clifford Heath wrote: >> On 4/8/20 12:13 pm, Robert Baer wrote: >>>    Environment: Win7.1 Firefox 78 >>> >>>     Sample line used: >>> Downhole Measurements >>> >>>     At least execution transfers from the calling HTML to the desired >>> destination HTML. >>> >>>     BUT. the keyword does NOT get underlined or highlighted in any way. >>>     It would be particularly nice if all the keywords got highlighted >>> and the first keyword was presented on the screen (think loong >>> document and keyword was in middle). >> >> You won't get highlighting without adding Javascript. >> >> I suggest you use a fragment identifier: >> >> Downhole Measurements >> >> because that gets passed to the browser, which will scroll to the >> matching tag. The fragment string is also available to >> Javascript by using >> >> var fragment = location.hash; // Returns '#able' >> >> You could use that to highlight the appropriate text. >> >> Clifford Heath. > Does not that require EVERY instance of "able" in every document to > be tagged? > Or at minimum, the first instance to be tagged? No. You still need to write *code* to do this. > MUCH easier and saner to (somehow) get the browser FIND() to do its > thing; even IE8 dew that. Then do it. What did you try so far? What's your problem with it? -- Arno Welzel https://arnowelzel.de