runeveryday Posted August 7, 2010 Share Posted August 7, 2010 Traversal also aids developers in affecting the elements immediately surrounding an element that is being manipulated or otherwise utilized by a script. This can range from adding a class to parent elements to indicate activity to disabling all inactive form elements to any number of other useful tasks. can't understand the above,the paragraf is from a book.anyone helps.thank you, Quote Link to comment Share on other sites More sharing options...
RussellReal Posted August 8, 2010 Share Posted August 8, 2010 paragraph* more to your question.. a parent element is an element which contains another element <div> <span></span> </div> span's parent is div.. traversal is basically moving from element to element.. it basically says javascript makes it easy to traverse element to element even from a certain point.. E.G. getting <span>'s parent would be as simple as.. document.getElementsByTagName('span')[0].parentNode; so when you read that paragraph just think traversal as moving from one element to another.. or between, outward and inward.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.