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: Fri, 7 Aug 2020 14:26:31 +0200 Lines: 39 Message-ID: References: <1BpWG.140475$7vd.62888@fx35.iad> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net HKr8vCFxVtQorbYVHSmBiAU53aj2XlhVmkn4GO2519NYfNB44v Cancel-Lock: sha1:Nzlt+/BaCj+mGloTdhzgkOZioDU= In-Reply-To: Xref: csiph.com alt.computer:11905 comp.lang.javascript:38696 sci.electronics.design:597619 Robert Baer: > Arno Welzel wrote: >> Robert Baer: >> >> [...] >>> Even IE8 FIND() works; highlights all found keywords dynamically, >>> allows previous/next. >>> Seems most browsers support this rather well. >> >> So - why did you even ask in the first place when you already know the >> solution? >> >> > I do NOT know the solution; requiring the user to enter > f is not a sane requirement, Huh? And to search for something there: This is just a rough "quick & dirty" example and uses window.find() and URLSearchParams(). This is NOT standard and may NOT work with every browser. It works for me with Firefox 79.0 and should also work with most Chrome based browsers. However - I would *not* recommend this for production. And for highlighting *every* found word, adding next/prev etc. you need to create your own script. -- Arno Welzel https://arnowelzel.de