View Issue Details

IDProjectCategoryView StatusLast Update
0000170Main CAcert Websiteweb of trustpublic2013-01-14 01:33
ReporterAndreasJ Assigned To 
Status closedResolutionfixed 
Fixed in Version2006 
Summary0000170: Set focus to email field on load
DescriptionI've a little feature request for wot.php. After assuring someone you
must set the focus manually to the text fiels "Assure Someone". This is
annoying if you assure more than X people (in my case 20).

If one change the line

   <form method="post" action="wot.php">


   <form method="post" action="wot.php" name="assuresomeone">

and add

to then "onload" script of the body tag "mass assurance" may be easier.
TagsNo tags attached.
Reviewed by
Test Instructions



2006-08-16 05:11

developer   ~0000501

I was able to set focus to a field in firefox, but not in opera, is anyone here more knowledgable in browser quirks able to comment?


2006-09-06 12:10

developer   ~0000662

I managed to make this working via getElementById


2006-09-06 21:24

manager   ~0000664

What about moving the setfocus() function to <head> and call it from the foot of every website? Using the 'if (document.getElementById("focusThis"))' and a generic element id "focusThis" it is possible to focus only if requested by the site.

This way it will be easier to apply changes in the future and you can focus fields on other pages aswell without repeating yourself (just add id="focusThis" to the field to focus).

<script language="JavaScript" type="text/javascript">
    function setfocus()
          if (document.getElementById("focusThis"))

<input type="text" name="email" id="focusThis" value=""></td>


<script language="JavaScript" type="text/javascript">


2006-09-06 21:34

developer   ~0000665

Possibly so, but there seems to be plenty of bigg fish to fry at this point in time :)

Issue History

Date Modified Username Field Change
2006-03-09 19:01 AndreasJ New Issue
2006-08-16 05:11 duane Note Added: 0000501
2006-08-16 05:11 duane Assigned To => duane
2006-08-16 05:11 duane Status new => confirmed
2006-09-06 12:09 duane Status confirmed => needs work
2006-09-06 12:09 duane Assigned To duane => bluec
2006-09-06 12:10 duane Status needs work => solved?
2006-09-06 12:10 duane Fixed in Version => production
2006-09-06 12:10 duane Resolution open => fixed
2006-09-06 12:10 duane Note Added: 0000662
2006-09-06 21:24 bluec Note Added: 0000664
2006-09-06 21:34 duane Note Added: 0000665
2007-10-24 06:01 evaldo Assigned To bluec =>
2007-10-24 06:01 evaldo Status solved? => closed
2013-01-14 01:33 Werner Dworak Fixed in Version => 2006