The buttons and links are built in javascript and need alt attributes added in javascript to make the page usable for screen reader users. Is there a way to add it in this code?

Code:
<script language="JavaScript">
if( is.min ){
    document.write(button38.div)
    document.write(button41.div)
    document.write(button42.div)
    document.getElementById("button38").tabIndex = 5;
    document.getElementById("button41").tabIndex = 2;
    document.getElementById("button42").tabIndex = 4;
    document.getElementById("button38").accessKey = '5';
    document.all.button38.accessKey = '5';// IE only
    document.getElementById("button41").accessKey = '2';
    document.all.button41.accessKey = '2'; // IE only
    document.getElementById("button42").accessKey = '4';
    document.all.button42.accessKey =  '4'; // IE only
}
</script>