How Add Default Text Size Function - Javascript
I found the following script for increase and decrease font size but does anyone have any idea how to do the function for default font? var min=8; var max=18; function increaseFon
Solution 1:
functionresetToDefaultFontSize() {
var p = document.getElementsByTagName('div');
for(i=0;i<p.length;i++) {
p[i].style.fontSize = "12px";
}
}
Note: jQuery could make all these functions into 3 one-liners, so you might want to look into it.
Post a Comment for "How Add Default Text Size Function - Javascript"