Why does the value of a stock depend on dividends?

Why does the value of a stock depend on dividends?

A substantial percentage of the companies listed on the NYSE and NASDAQ do not pay dividends, but investors are nonetheless willing to buy shares in them. How is this possible given your answer to the previous question?