Return to Snippet

Revision: 26805
at May 11, 2010 10:39 by delibash


Initial Code
function vert (elem) {
    var el = document.getElementsByTagName(elem);
    for (var i=0; i < el.length; i++) {
        var ex = el[i].childNodes[0];
        if (el[i].nodeType === 1) {
            el[i].innerHTML = el[i].innerHTML.split('').join('<br/>');
        };
    }; 
}

vert('th');

Initial URL

                                

Initial Description

                                

Initial Title
Make  TABLE TH element's innerHTML vertical

Initial Tags
javascript

Initial Language
JavaScript