Tryit Editor v1.4

<html> <head> <script type="text/javascript"> txtsize=0; maxsize=100; function writemsg() { if (txtsize<maxsize) { document.getElementById('msg').style.fontSize=txtsize; txtsize++; timer=setTimeout("writemsg()",10); } } function stoptimer() { clearTimeout(timer); } </script> </head> <body onload="writemsg()" onunload="stoptimer()"> <p id="msg">W3Schools!</p> </body> </html> | Your Result:
Edit the code above and click to see the result. | W3Schools.com - Try it yourself