You are on the right track. There are a number of different ways of retrieving the objects using DOM - there is a short introduction page with some links here: http://www.yourhtmlsource.com/javascript/objectsproperties.html