title: Why the onload focus doesn't work on this script?
body: <p>This is a sample of my form. when the page loads the focus must be on 'fbox' but it dosent work and i don understand why. the form contains a niceditor but i dont think that is the problem</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body onload="document.form.fbox.focus();"&gt;
  &lt;body&gt;
  &lt;form method='post' action='' name='form' &gt;
  Headline &lt;input name='fbox' type='text' class='form' id='box' autocomplete='off' size='80'&gt;&lt;br&gt;
  Your text&lt;/font&gt;&lt;br&gt;&lt;script type="text/javascript" src="nicEdit.js"&gt;&lt;/script&gt;&lt;script type="text/javascript"&gt;bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });&lt;/script&gt;
  &lt;textarea name="description" style="width: 100%; height:200px;"&gt;&lt;/textarea&gt;&lt;/p&gt;     
  &lt;p&gt;&lt;select name='catg' &gt;
  &lt;option value='' selected &gt;Select category&lt;/option&gt;
  &lt;/select&gt;
  &lt;input type="submit" id='button' name="Submit" value="Submit" class="button"&gt;&lt;/form&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>thanks</p>