Stock markets are near record levels, and initial public offerings are posting huge gains in their opening days.