Lab03_518H0545/js/exercise03.js
//make text italic and nothing else
make text italic and nothing else
make text italic and nothing else
function makeitItalic(){
    let mess_id = document.getElementById("message_show");
    let italic = document.getElementById("italic");
    if(italic.checked){
        mess_id.style.fontStyle = "italic";
    }
    else{
        mess_id.style.fontStyle = "normal";
    }
}
function makeitItalic ( ) { let mess_id = document . getElementById ( "message_show" ) ; let italic = document . getElementById ( "italic" ) ; if ( italic . checked ) { mess_id . style . fontStyle = "italic" ; } else { mess_id . style . fontStyle = "normal" ; } }
make text italic and nothing else
make text italic and nothing else