Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #38599

Re: alternate way?

Subject Re: alternate way?
Newsgroups comp.lang.javascript
References <ETpRG.61533$lI.623@fx22.iad> <bgyh0u5kv87e$.tdjjlisi0tdb.dlg@40tude.net> <wNvSG.170651$AN2.151955@fx46.iad> <1j5tkprrh925z$.1olio0ank8ocm$.dlg@40tude.net>
From Robert Baer <robertbaer@localnet.com>
Message-ID <IwGSG.199816$eN2.192008@fx47.iad> (permalink)
Date 2020-07-24 12:21 -0700

Show all headers | View raw


JJ wrote:
> On Fri, 24 Jul 2020 00:08:05 -0700, Robert Baer wrote:
>>
>>     How about user picking out [from a selection] a "keyword' (which will
>> be one word) and having a magic combination of simple HTML, CSS, and js
>> to pass that onto the browser keyboard find function [as if one had done
>> a <ctrl>f and then typed in that "keyword"]?
>>
>>     Thanks
> 
> One problem: there is no function to bring up the browser's Find feature.
* I sure could not find a way, spent hours.

> There's no way to bring it up programmatically via JavaScript which is
> executed in the context of the opened HTML document. Generating the
> necessary keyboard events for simulating keyboard key press (i.e. for the
> CTRL+F shortcut) would also be impossible, because the browser will ignore
> the untrusted event.
* It shay.

> 
> If you're trying to highlight words from a given keyword, scroll the
> matching keyword into view, it has to be done manually via JS to mimic the
> browser's Find feature.
> 
    So...even using CSS as a helper, i am SOL?

    Thanks.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: alternate way? Robert Baer <robertbaer@localnet.com> - 2020-07-24 00:08 -0700
  Re: alternate way? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-07-24 09:45 +0200
    Re: alternate way? Robert Baer <robertbaer@localnet.com> - 2020-07-24 12:16 -0700
      Re: alternate way? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-07-25 14:42 +0200
        Re: alternate way? Richard Damon <Richard@Damon-Family.org> - 2020-07-25 20:20 -0400
        Re: alternate way? Robert Baer <robertbaer@localnet.com> - 2020-08-03 15:01 -0700
  Re: alternate way? JJ <jj4public@vfemail.net> - 2020-07-24 19:27 +0700
    Re: alternate way? Robert Baer <robertbaer@localnet.com> - 2020-07-24 12:21 -0700
      Re: alternate way? JJ <jj4public@vfemail.net> - 2020-07-25 20:06 +0700
        Re: alternate way? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-07-25 11:29 -0700
          Re: alternate way? JJ <jj4public@vfemail.net> - 2020-07-26 20:42 +0700
          Re: alternate way? Arno Welzel <usenet@arnowelzel.de> - 2020-08-04 04:38 +0200
            Re: alternate way? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-08-03 19:43 -0700
    Re: alternate way? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-07-25 00:57 +0200

csiph-web