GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing fa.javascript.info — Show descendants in a tree

  • آموزش
  • مرورگر: Document، Eventها، رابط‌ها
  • Document
  • Modifying the document
بازگشت به درس
این محتوا تنها در این زبان‌ها موجود است: Čeština, Dansk, English, Español, Français, Indonesia, Italiano, 日本語, 한국어, Русский, Türkçe, Українська, Oʻzbek, 简体中文. لطفاً به ما

Show descendants in a tree

اهمیت: 5

There’s a tree organized as nested ul/li.

Write the code that adds to each <li> the number of its descendants. Skip leaves (nodes without children).

The result:

باز کردن یک sandbox برای تمرین.

To append text to each <li> we can alter the text node data.

باز کردن راه‌حل درون sandbox.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.