> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Wendy Smoak
> Sent: Monday, March 15, 2004 9:13 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [struts-menu] Need the tabbed menus to have an 
> onclick attribute
> Can you explain what this does:
> if (items[i].firstChild.onclick) { ... }
> Does it evaluate to a boolean, and determine whether the 
> onclick attribute is present and non-empty?
> 

Yes, this checks for an existing onclick attribute and if it exists - it
appends to it, rather than overwriting it.

Matt




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
struts-menu-user mailing list
[EMAIL PROTECTED]
https://lists.sf.net/lists/listinfo/struts-menu-user

Reply via email to