I just did something like that to detect clicks on links only within one Div tag. Used yahoo's dom and event js and spry for the tabs.
http://dev.besavvy.com/Spry_P1_4_1214/samples/tabbedpanels/tabbed_panel_samp le.cfm The guts are: function clickHandler(e) { var elTarget = YAHOO.util.Event.getTarget(e); while (elTarget.id != "TabbedPanels1") { if(elTarget.nodeName.toUpperCase() == "A") { if(elTarget.href.indexOf('dev.besavvy.com') != -1) { Spry.Utils.updateContent('apDiv1',elTarget); YAHOO.util.Event.preventDefault(e); break; } else { break; } } else { elTarget = elTarget.parentNode; } } } YAHOO.example.init = function() { YAHOO.util.Event.on(YAHOO.util.Dom.getElementsByClassName('joshua', 'div')[0], "click", clickHandler); } Joshua Cyr Savvy Software 866.870.6358 www.besavvy.com -----Original Message----- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 3:47 PM To: CF-Talk Subject: RE: SOT: JavaScript question. I don't know how getElementsByTag() differs from getElementsByTagName, but you can call the later on a node. nodes = getElementById('yourdiv').getElementsByTagName('p'); Thanks, I thought I tried something like this, but I will give it another go. getElementsByTag() differs from getElementsByTagName() in that the former is my mistyping of the latter! :-) I am so waiting for that "type what I meant to type" spell checker! -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA --------- | 1 | | --------- Binary Soduko | | | --------- "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264653 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4