Focus on hyperlinks in richtext viewer

1
We're using the rich text viewer to display some nice html in our startpage. This html is some kind of news pane. Because we have hyperlinks in this html, the page will be focussed on the first hyperlink after logging in and thus the scrollbar will be vertically aligned to the center. Is this normal behaviour and can I prevent this from happening?
asked
2 answers
1

I just tested this in 2.5.7.1 and i did not find any such behaviour, could you mail me part of the html?

answered
0

You can try this by putting this code at the end of your body tag

<script>
(function(){
    var forms = document.forms || [];
    for(var i = 0; i < forms.length; i++){
        for(var j = 0; j < forms[i].length; j++){
            if(!forms[i][j].readonly != undefined && forms[i][j].type != "hidden" && forms[i][j].disabled != true && forms[i][j].style.display != 'none'){
                forms[i][j].focus();
                return;
            }
        }
    }
})();
</script>

It is worth a try.

answered