function set_font_size(fontType) { if (fontType == "increase") { if (fontSize < 100) { fontSize = parseInt(fontSize) + 15; } } else { fontSize = 75; } document.getElementById("sitebody1").style.fontSize = fontSize + "%";
<body id="sitebody1"> onclick="set_font_size('increase')
fontSize
else
if(fontType...)
if(fontSize...)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)