1. Home
  2. Computing & Technology
  3. JavaScript

Object Functions

Part 1 : Introduction

If you are going to code some dynamic HTML (dHTML) for your web pages then you will probably be moving objects around the screen, resizing objects, and/or making them appear and disappear. You will need a way of determining where the object currently is on the screen, how big it is, and whether it is visible or not. If you want your script to work on as many browsers as possible you will also want to use code that is compatible with all three Document Object Models.

To save you the effort of writing these functions yourself , I am supplying a set of eight functions that will provide this information for you. Let's start by looking at what functions there are.

Explore JavaScript

More from About.com

  1. Home
  2. Computing & Technology
  3. JavaScript

©2008 About.com, a part of The New York Times Company.

All rights reserved.