namazu-users-en
[Top] [All Lists]

NMZ.head improvement

2002-12-17 10:31:23
Hi All,

Add this little bit to you the NMZ.head template to have the 
keyboard focus automatically set to the input query textbox 
everytime the page loads. It makes the search page much 
easier and quicker to use.

------------------------------------
<script language="JavaScript"><!--
function setFocus() {
    document.forms[0].elements[0].focus();
    }
//--></script>
</head>
<body lang="en" onLoad="setTimeout('setFocus()',1)">
------------------------------------

cheers,


-- Matt Wilkie 
--------------------------------------------
Geographic Information,
Information Management and Technology,
Yukon Department of Environment
91780 Alaska Hwy * Whitehorse, Yukon * Y1A 5X7
867-667-8133 Tel * 867-393-7003 Fax
-------------------------------------------- 

<Prev in Thread] Current Thread [Next in Thread>
  • NMZ.head improvement, Matt.Wilkie <=