Hello All,
i have a master page and master page body id= "sitebody1" and on clicking a button i am increasing the font size by javascript function.
The font size of master page contents are increasing but content page font size is not increased.
following is sample code
Jacascript
function set_font_size(fontType) {
if (fontType == "increase") {
if (fontSize < 100) {
fontSize = parseInt(fontSize) + 15;
}
} else {
fontSize = 75;
}
document.getElementById("sitebody1").style.fontSize = fontSize + "%";
Design
<body id="sitebody1">
onclick="set_font_size('increase')
of a button