Here you can find a number of examples on Java Script.Please find the various kinds of examples listed on the right side of this site. If you don't find anything on Java Script then please write to us or leave a commnet. We are pleased to help and find the solution of your problem.

JavaScript: Fontsize Function



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

Google