[thelist] DHTML - div display.

Matt Warden mwarden at gmail.com
Sun Feb 6 20:16:48 CST 2005


On Mon, 07 Feb 2005 13:06:32 +1100, Robert Gormley
<robert at pennyonthesidewalk.com> wrote:
> Also, the onclick will sit on a div within the container, how would I
> reference its parent div?

if 'div' is a reference to the div, you would do:

var parentdiv = div.parentNode;

assuming the div you want is a direct parent of 'div'



-- 
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.


More information about the thelist mailing list