• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 24. Client-side Scripting > Writing Simple Scripts

Writing Simple Scripts

Now that you have a general idea of how to write JavaScript code, you are ready to look at a few examples of how you can use JavaScript in your Web pages. In this section, you will learn how to hide and show page elements using JavaScript, how to access elements on a page and read and change their attributes, and how to check information entered into a form before it's submitted. These three tasks are the most common tasks taken on by JavaScript developers.

I have tested the scripts used in this section in Internet Explorer 6 and Netscape 7.1, but they are simple scripts that should work in earlier versions as well. As always, before you implement any scripting solution, you should thoroughly test it in all Web browsers you think your Web site visitors might be using.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint