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

Chapter 12. Learning About Your Environm... > Finding an Object's Bottom and Right...

Finding an Object's Bottom and Right Positions

Like the top and bottom positions, the bottom and right positions can be determined with JavaScript (Figure 12.19). You do not do this directly, however. You find the left or top position of the object and the width or height of the object and add these values (Code 12.11).

Figure 12.19. An alert pops up to tell you the bottom and right positions of the object.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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