eHow Blog:
How To

How to Teach Yourself JavaScript

Sample JavaScript code.
Sample JavaScript code.
Stock Xchng http://www.sxc.hu/photo/58511

JavaScript is a web programming language that allows you to manipulate websites in ways that simple Hyper Text Markup Language (HTML) code doesn't allow. With JavaScript, you can add enhanced functionality to a website, such as allowing users to choose different options or have advanced menus. To teach yourself JavaScript code, you must first have a solid understanding of the basics of HTML.

From Quick Guide: Building a Website 101
Difficulty: Moderately Challenging
Instructions
  1. Step 1

    Follow the link in Resources to the World Wide Web Consortium HTML tutorial page, or a similar resource for learning HTML. Read through the first few examples of how to create an HTML web page to gain an understanding of how a simple web page works.

  2. Step 2

    Open a text document that does not use any special formatting, such as the Notepad program. Create your own simple web page using the <HTML>, <BODY> and <HEAD> tags described in the HTML tutorials. Save the file with the ".html" extension.

  3. Step 3

    Change some of the HTML settings until you are comfortable with the basics of creating web pages. Navigate to the JavaScript tutorial website in Resources. Read through the first few pages and type the code examples into your text document so that you learn how to use JavaScript syntax.

  4. Step 4

    Head to a bookstore and pick up a beginning JavaScript tutorial book, such as "Headfirst JavaScript" or "Learning JavaScript." Follow along with the book's lessons as you continue through the examples in the online tutorials. Type out the code in the book to familiarize yourself with creating JavaScript code.

  5. Step 5

    Continue working with the online and book tutorials until you think of something you'd like to do with JavaScript that isn't covered in the examples. Navigate your browser to the JavaScript examples website in the Resources section.

  6. Step 6

    Look through the various types of JavaScript examples and find JavaScript code you'd like to implement. Examine the code and compare it to the lessons you've learned in the tutorials. Try changing the code to modify its variables and figure out how the code works.

  7. Step 7

    Put up your JavaScript code on your personal website and then view it from different web browsers to see how your complete code looks.

Tips & Warnings
  • If you don't already have a personal website, you can set one up using any number of free web hosting services, such as Yahoo! Geocities (see Resources).
Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This

Internet Fans

Follow us

  • Internet
  • Internet
Get Free Internet Newsletters
eHow At Home
eHow At Home

Copyright © 1999-2010 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy .   en-US † requires javascript

Demand Media
eHow_eHow Technology and Electronics