convert text to lower case - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

convert text to lower case

alauckalauck Posts: 1Member
I have a small script that parses html content to text that has been copied to a textarea form. This works fine using

function parseHTML()
{
code = document.form.html.value;

document.write(code);
}


I want to also convert all text to lower case. Any ideas about how to convert all text to lower case?

Thanks

Comments

  • tburchamtburcham Posts: 102Member
    : I have a small script that parses html content to text that has been copied to a textarea form. This works fine using
    :
    : function parseHTML()
    : {
    : code = document.form.html.value;
    :
    : document.write(code);
    : }
    :
    :
    : I want to also convert all text to lower case. Any ideas about how to convert all text to lower case?
    :
    : Thanks
    :


    Here's some sample code.
    [code]


    function DvClk() {
    t = new String( dv.innerText )
    dv.innerText = t.toLowerCase()
    }






    THIS IS UPPERCASE UNTIL YOU CLICK IT


    [/code]
    tburcham
Sign In or Register to comment.