Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

custom properties on DOM ?

Status
Not open for further replies.

SimonTheSponge

Programmer
Feb 12, 2001
74
GB
A bit new to Javascript so forgive me if this is a silly question

Can you create custom properties on a DOM object. I have a layer that I wish to create an array property for which I will then assign various other child layers into eg

PopupObject=PopupFrame.style ;
PopupObject.Children = new array[3] ;
PopupObject.Children[1] = Popupchild1.style ;
PopupObject.Children[2] = Popupchild2.style ;
PopupObject.Children[3] = Popupchild3.style ;

so I can manipulate other layers through a reference to this one PopupFrame ?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top