Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Javascript JavaScript method big()

Related Tutorials


 
 

Share on Google+Share on Google+

JavaScript method big()

Advertisement
This section illustrates you the use of JavaScript method big(). The big() method allows you to display the specified string in a big font.

JavaScript method big()

     

This section illustrates you the use of JavaScript method big(). The big() method allows you to display the specified string in a big font. You can see in the given example that we have used the method big() that will change the font of the specified string. We have create a button which calls the function changeFont() from the script and displays the string in big font .

 

 

 

Here is the code:

<html>
<script>
function changeFont(){
var text = document.getElementById("small").innerText;
document.getElementById("small").innerHTML = text.big();
}
</script>
<h2>Use of method big()</h2>
<div id="small">Hello</div>
<button onclick="changeFont()">Change Font</button>
</html>

Output will be displayed as:

On clicking the button, you will see the string with changed font:

Download Source Code:

     

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: October 7, 2010

Related Tutorials

Discuss: JavaScript method big()  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:1
veena
February 13, 2012
HTML FILES

I want to create a table,in that table i want to call text files using object tag..now i want build this table using for loop..How and where i should use for loop in html code...
DMCA.com