title: Add TabIndex to buttons built by JavaScript
body: <p>I have buttons built with JavaScript and want to add TabIndex for keyboard accessibility. I added accesskey values in this code and in this code:</p>
  
  <pre><code>button41 = new ObjButton('button41',null,679,0,53,32,1,54,'div')
  button41.setImages('images/0807_help.jpg','images/0807_help_over.jpg','images/0807_help_over.jpg')
  button41.onUp = button41onUp
  button41.hasOnUp = true
  button41.capture=4
  button41.setAccessKey(2)
  button41.setTabIndex(2)
  button41.build()
  </code></pre>
  
  <p>But when I tried to add TabIndex, the TabIndex number didn't work. Any suggestions? Here is the script:</p>
  
  <pre><code>function ObjButtonBuild() {
      this.css = buildCSS(this.name,this.x,this.y,this.w,this.h,this.v,this.z)
      this.div = '&lt;' + this.divTag + ' id="'+this.name+'" style="text-indent:0;"&gt;&lt;/' + this.divTag + '&gt;\n'
      this.divInt = '&lt;a name="'+this.name+'anc" href="javascript:void(null)"'
      if(this.accessKeyValue &amp;&amp; this.accessKeyValue!=null) {
          this.divInt+=' accessKey='+this.accessKeyValue+' ';
      }
      if( this.altName )
          this.divInt += ' title="'+this.altName+'"'
      else if( this.altName != null )
          this.divInt += ' title=""'
          this.divInt += '&gt;&lt;img name="'+this.name+'Img" src="'+this.imgOffSrc
      if( this.altName )
          this.divInt += '" alt="'+this.altName
      else if( this.altName != null )
          this.divInt += '" alt="'
          this.divInt += '" width='+this.w+' height='+this.h+' border=0'
      if( !is.ns4 ) 
          this.divInt += ' style="cursor:pointer"'
          this.divInt += '&gt;&lt;/a&gt;'
  }
  </code></pre>