You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by Christophe Noel <ch...@cetic.be> on 2005/05/26 12:50:22 UTC

form focus on search.html

Hello,

The *focus* is the component of the graphical user interface 
<http://en.wikipedia.org/wiki/Graphical_user_interface> which is 
currently selected  (http://en.wikipedia.org/wiki/Focus_%28computing%29).

To give the focus in search.html to the input query , modifications 
should be the following :

If form name is "search", and if query input is "query" :

Add in the header :
<script>
<!--
function sf(){document.search.query.focus();}
// -->
</script>

Add in the body tag :
<body onLoad=sf()>

We have now a search.html page which focus on query input line.

This is dumb but it seems to me necessary.

Christophe Noël
Search Engines
CETIC
Charleroi
Belgium

Re: form focus on search.html

Posted by Jérôme Charron <je...@gmail.com>.
> We have now a search.html page which focus on query input line.
> This is dumb but it seems to me necessary.
You are right Christophe.
=> Create Issue on Jira and submit a patch...
;-)

Jerome

-- 
http://motrech.free.fr/
http://frutch.free.fr/