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


Groups > comp.lang.javascript > #14770

Re: Quick Search in Firefox: can I trigger from Javascript?

From "Michael Haufe (TNO)" <tno@thenewobjective.com>
Newsgroups comp.lang.javascript
Subject Re: Quick Search in Firefox: can I trigger from Javascript?
Date 2012-06-29 11:57 -0700
Organization http://groups.google.com
Message-ID <030d8fad-d328-4d31-8fd1-5ccccb89ff53@googlegroups.com> (permalink)
References <eli$1206271751@qz.little-neck.ny.us>

Show all headers | View raw


On Wednesday, June 27, 2012 4:58:39 PM UTC-5, Eli the Bearded wrote:
> Firefox, at least as I have it configured, lets you start search within
> a web page by typing "/" to bring up a "Quick Search" bar. Is there
> some way I can invoke that on my own? I'm thinking of something along
> the lines of:
> 
> ...
> 	<script type="text/javascript">
> 	function QuickFind(event) {
> 	  var keycode;
> 	  if(event.which) {
> 	    keycode = event.which;
> 	    // 27 == escape
> 	    if(keycode == 27) {
> 	      InvokeQuickSearch();
> 	    }
> 	  }
> 	}
> 	</script>
> ...
> 	<body onkeydown="QuickFind(event)">
> ...
> 
> Elijah
> ------
> doesn't know where to being searching for Firefox internal functions

Look at this:
<https://developer.mozilla.org/en/DOM/window.find>

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


Thread

Quick Search in Firefox: can I trigger from Javascript? Eli the Bearded <*@eli.users.panix.com> - 2012-06-27 21:58 +0000
  Re: Quick Search in Firefox: can I trigger from Javascript? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-06-29 11:57 -0700
    Re: Quick Search in Firefox: can I trigger from Javascript? Eli the Bearded <*@eli.users.panix.com> - 2012-07-09 18:25 +0000
      Re: Quick Search in Firefox: can I trigger from Javascript? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-07-09 14:44 -0700
        Re: Quick Search in Firefox: can I trigger from Javascript? Eli the Bearded <*@eli.users.panix.com> - 2012-07-09 22:09 +0000
          Re: Quick Search in Firefox: can I trigger from Javascript? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-07-09 18:39 -0700

csiph-web