javascript basics question
- by refge
i have this small javascript code which i need some help with.
    function doFocus(text) {
        if (text.value == "Enter Name") {
            text.value = "Student Name -"
        }
    }
All i need here is when someone clicks on my textbox, the text "Student Name -" should change its color, and should text-align=left. so text.color and text.align or the appropriate sytax.