[Javascript] compact syntax

Paul Cowan dagda1 at hotmail.com
Wed Mar 14 09:52:53 CDT 2007


Hi,I am more used to xpath for walking the dom.
Is there a more compact way of saying the following:
 
var override = sender.parentElement.parentElement.nextSibling.children[1].firstChild;
 
Cheers
Paul
_________________________________________________________________
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070314/7d1204fe/attachment.htm>


More information about the Javascript mailing list