Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

how a font in a tag = FontSize + 1;

$
0
0

hi

i want create page like this page

when +_click , font += 1;

and when -_click , font -=1;

<script language="javascript">
function Increase(){
document.getElementById("text1").style.fontSize += 1;
}
function Reduction(){
document.getElementById("text1").style.fontSize -= 1;
}</script><body><a id="text1">change text_size(font_size)</a><a href="#" onclick="Increase">click</a></body>

but don't work!


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>