Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Complete Tutorial on Usage of JavaScript Variables and Built-In Functions

Share this post!
 Vote this!

With JavaScript you can update the content on your pages automatically--every day, every hour, or every second. In this chapter, I'll focus on a simple script that automatically changes the date on your web page.
Along the way you'll learn:
  • How JavaScript uses variables to remember simple items such as names and numbers
  • How JavaScript keeps track of more complicated items such as dates
  • How to use JavaScript functions to write information to your web page
Before getting into the nuts and bolts of functions and variables, let's take a look at a couple of examples of web pages that automatically update themselves, starting with the European Space Agency. As you can see in Figure , the ESA's home page shows you the current date. Rather than change the home page every day, the ESA uses JavaScript to change the date automatically.



More...

RECOMMENDED FURTHER READING


Using JavaScript Variables and Built-In Functions, Part 2



Using JavaScript Variables and Built-In Functions, Part 3



Writing Your Own JavaScript Functions




0 comments:

Post a Comment