fontsize Function:
You can change font size by using fontsize Function in Javascript.
Syntax:
variablename.fontsize(size);
Example in HEAD section:
<html> <head> <title>Fontsize Function</title> <script lnaguage="javascript"> var worldString="Hello, world" document.write(worldString.small()) document.write("<P>" + worldString.big()) document.write("<P>" + worldString.fontsize(5)) </script> </head> </html> |
Example in BODY section:
<html> <head> <title>Fontsize Function</title> </head> <body> <script lnaguage="javascript"> var worldString="Hello, world" document.write(worldString.small()) document.write("<P>" + worldString.big()) document.write("<P>" + worldString.fontsize(5)) </script> </body; </html> |
OUTPUT
Hello, world
Hello, world
Hello, world
No comments:
Post a Comment